Beispiel #1
0
 /**
  * @see	\wcf\system\menu\TreeMenu::checkMenuItem()
  */
 protected function checkMenuItem(ITreeMenuItem $item)
 {
     if (!parent::checkMenuItem($item)) {
         return false;
     }
     return $item->getProcessor()->isVisible();
 }
Beispiel #2
0
 /**
  * @see	\wcf\system\menu\TreeMenu::loadCache()
  */
 protected function loadCache()
 {
     parent::loadCache();
     if (PACKAGE_ID == 0) {
         return;
     }
     $this->menuItems = ACPMenuCacheBuilder::getInstance()->getData();
 }
Beispiel #3
0
 /**
  * @see	wcf\system\menu\TreeMenu::loadCache()
  */
 protected function loadCache()
 {
     parent::loadCache();
     if (PACKAGE_ID == 0) {
         return;
     }
     $cacheName = 'acpMenu-' . PACKAGE_ID;
     CacheHandler::getInstance()->addResource($cacheName, WCF_DIR . 'cache/cache.' . $cacheName . '.php', 'wcf\\system\\cache\\builder\\ACPMenuCacheBuilder');
     $this->menuItems = CacheHandler::getInstance()->get($cacheName);
 }
Beispiel #4
0
 /**
  * @see	\wcf\system\menu\TreeMenu::setActiveMenuItem()
  */
 public function setActiveMenuItem($menuItem)
 {
     if (isset($this->menuItemList[$menuItem]) && $this->menuItemList[$menuItem]->menuPosition == 'footer') {
         // ignore footer items
         return;
     }
     parent::setActiveMenuItem($menuItem);
 }
Beispiel #5
0
	/**
	 * @see	wcf\system\menu\TreeMenu::checkMenuItem()
	 */
	protected function checkMenuItem(ITreeMenuItem $item) {
		// landing page must always be accessible
		if ($item->isLandingPage) {
			return true;
		}
		
		if (!parent::checkMenuItem($item)) return false;
		
		return $item->getProcessor()->isVisible();
	}