Inheritance: extends KernelLoader
Beispiel #1
0
 /**
  * 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());
 }
Beispiel #2
0
 /**
  * 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);
 }
Beispiel #3
0
 /**
  * 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);
 }