상속: extends KernelLoader
예제 #1
0
파일: Model.php 프로젝트: bwgraves/forkcms
 /**
  * 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());
 }
예제 #2
0
파일: Model.php 프로젝트: forkcms/forkcms
 /**
  * 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);
 }
예제 #3
0
파일: Model.php 프로젝트: bwgraves/forkcms
 /**
  * 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);
 }