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