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

getIdByURL() 공개 정적인 메소드

Get the tag-id for a given URL
public static getIdByURL ( string $url ) : integer
$url string The URL to get the id for.
리턴 integer
    public static function getIdByURL($url)
    {
        return (int) FrontendModel::getContainer()->get('database')->getVar('SELECT id
             FROM tags
             WHERE url = ?', array((string) $url));
    }