Пример #1
0
 /**
  * Generates the Menu for things like Web->Info
  *
  * @param $moduleMenuIdentifier
  */
 public function registerModuleMenu($moduleMenuIdentifier)
 {
     if (isset($GLOBALS['TBE_MODULES_EXT'][$moduleMenuIdentifier])) {
         $menuEntries = $GLOBALS['TBE_MODULES_EXT'][$moduleMenuIdentifier]['MOD_MENU']['function'];
         $menu = $this->getDocHeaderComponent()->getMenuRegistry()->makeMenu()->setIdentifier('MOD_FUNC');
         foreach ($menuEntries as $menuEntry) {
             $menuItem = $menu->makeMenuItem()->setTitle($menuEntry['title'])->setHref('#');
             $menu->addMenuItem($menuItem);
         }
         $this->docHeaderComponent->getMenuRegistry()->addMenu($menu);
     }
 }