Frontend\Modules\Tags\Engine\Model::getName PHP Méthode

getName() public static méthode

Fetch a specific tag name
public static getName ( integer $id ) : string
$id integer The id of the tag to grab the name for.
Résultat string
    public static function getName($id)
    {
        return FrontendModel::getContainer()->get('database')->getVar('SELECT tag
             FROM tags
             WHERE id = ?', array((int) $id));
    }