/** * Get the id of an item by the full URL of the current page. * Selects the proper part of the full URL to get the item's id from the database. * * @param FrontendURL $URL The current URL. * @return int */ public static function getIdForTags(FrontendURL $URL) { return FrontendNavigation::getPageId($URL->getQueryString()); }
/** * Get the id of an item by the full URL of the current page. * Selects the proper part of the full URL to get the item's id from the database. * * @param FrontendURL $url * * @return int */ public static function getIdForTags(FrontendURL $url) { $itemURL = (string) $url->getParameter(1); return self::get($itemURL); }
/** * Get the id of an item by the full URL of the current page. * Selects the proper part of the full URL to get the item's id from the database. * * @param FrontendURL $URL The current URL. * @return int */ public static function getIdForTags(FrontendURL $URL) { // select the proper part of the full URL $itemURL = (string) $URL->getParameter(1); // return the item return self::get($itemURL); }