Frontend\Modules\Tags\Engine\Model::getName PHP 메소드

getName() 공개 정적인 메소드

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