当前位置: 首页>>代码示例>>PHP>>正文


PHP BaseScriptClass::menuConfig方法代码示例

本文整理汇总了PHP中TYPO3\CMS\Backend\Module\BaseScriptClass::menuConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseScriptClass::menuConfig方法的具体用法?PHP BaseScriptClass::menuConfig怎么用?PHP BaseScriptClass::menuConfig使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TYPO3\CMS\Backend\Module\BaseScriptClass的用法示例。


在下文中一共展示了BaseScriptClass::menuConfig方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return void
  */
 public function menuConfig()
 {
     $this->MOD_MENU = array('mode' => array());
     $this->MOD_MENU['mode']['information'] = $GLOBALS['LANG']->sL('LLL:EXT:taskcenter/locallang.xlf:task_overview');
     $this->MOD_MENU['mode']['tasks'] = 'Tasks';
     parent::menuConfig();
 }
开发者ID:khanhdeux,项目名称:typo3test,代码行数:12,代码来源:TaskModuleController.php

示例2: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return void
  * @todo Define visibility
  */
 public function menuConfig()
 {
     $this->MOD_MENU = array('function' => array('1' => $GLOBALS['LANG']->getLL('display')));
     if ($GLOBALS['BE_USER']->user['admin']) {
         $this->MOD_MENU['function']['2'] = $GLOBALS['LANG']->getLL('rebuild');
     }
     parent::menuConfig();
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:14,代码来源:TypoScriptConfigHelpModuleController.php

示例3: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return	void
  */
 function menuConfig()
 {
     $this->MOD_MENU = array('function' => array('1' => $GLOBALS['LANG']->getLL('function1')));
     if (intval($this->settings['enableClearLogs']) === 1 || $GLOBALS['BE_USER']->user['admin']) {
         $this->MOD_MENU['function']['2'] = $GLOBALS['LANG']->getLL('function2');
     }
     parent::menuConfig();
 }
开发者ID:mhuebe,项目名称:formhandler,代码行数:13,代码来源:index.php

示例4: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return    void
  */
 function menuConfig()
 {
     $this->MOD_MENU = array("function" => array("1" => $GLOBALS['LANG']->getLL("function1"), "2" => $GLOBALS['LANG']->getLL("function2"), "3" => $GLOBALS['LANG']->getLL("function3")));
     if (!$this->getBackendUserAuthentication()->isAdmin()) {
         // Rollback and Security settings are not available for non-admins
         unset($this->MOD_MENU['function']['2']);
         unset($this->MOD_MENU['function']['3']);
     }
     parent::menuConfig();
 }
开发者ID:visol,项目名称:ext-rs_userimp,代码行数:15,代码来源:UserImporter.php

示例5: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return void
  */
 public function menuConfig()
 {
     $this->MOD_MENU = array('mode' => array());
     $this->MOD_MENU['mode']['information'] = $this->getLanguageService()->sL('LLL:EXT:taskcenter/Resources/Private/Language/locallang.xlf:task_overview');
     $this->MOD_MENU['mode']['tasks'] = $this->getLanguageService()->sL('LLL:EXT:taskcenter/Resources/Private/Language/locallang.xlf:task_tasks');
     /* Copied from parent::menuConfig, because parent is hardcoded to menu.function,
      * however menu.function is already used for the individual tasks.
      * Therefore we use menu.mode here.
      */
     // Page/be_user TSconfig settings and blinding of menu-items
     $this->modTSconfig = BackendUtility::getModTSconfig($this->id, 'mod.' . $this->moduleName);
     $this->MOD_MENU['mode'] = $this->mergeExternalItems($this->MCONF['name'], 'mode', $this->MOD_MENU['mode']);
     $this->MOD_MENU['mode'] = BackendUtility::unsetMenuItems($this->modTSconfig['properties'], $this->MOD_MENU['mode'], 'menu.mode');
     parent::menuConfig();
 }
开发者ID:TYPO3Incubator,项目名称:TYPO3.CMS,代码行数:20,代码来源:TaskModuleController.php

示例6: menuConfig

 /**
  * Adds items to the ->MOD_MENU array.
  * Used for the function menu selector.
  */
 function menuConfig()
 {
     $this->MOD_MENU = array('function' => array('1' => $GLOBALS['LANG']->getLL('function1'), '2' => $GLOBALS['LANG']->getLL('function2')));
     parent::menuConfig();
 }
开发者ID:ulrikkold,项目名称:cal,代码行数:9,代码来源:CalIndexer.php

示例7: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return void
  */
 public function menuConfig()
 {
     $this->MOD_MENU = array('function' => array('1' => 'attributes', '2' => 'manufacturer', '3' => 'supplier'));
     parent::menuConfig();
 }
开发者ID:BenjaminBeck,项目名称:commerce,代码行数:10,代码来源:SystemdataModuleController.php

示例8: menuConfig

 public function menuConfig()
 {
     global $LANG;
     $this->MOD_MENU = array('function' => array('errors_here' => $LANG->getLL('errors_here'), 'errors_subtree' => $LANG->getLL('errors_subtree')));
     parent::menuConfig();
 }
开发者ID:dschledermann,项目名称:typo3-linkservice,代码行数:6,代码来源:Module.php

示例9: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  * @return    void
  */
 function menuConfig()
 {
     global $LANG;
     $this->MOD_MENU = array('function' => array('1' => $LANG->getLL('function1'), '2' => $LANG->getLL('function2'), '4' => $LANG->getLL('function4'), '3' => $LANG->getLL('function3')));
     parent::menuConfig();
 }
开发者ID:bvbmedia,项目名称:multishop,代码行数:10,代码来源:index.php

示例10: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return  void
  */
 function menuConfig()
 {
     global $LANG;
     parent::menuConfig();
 }
开发者ID:danilovq,项目名称:l10nmgr,代码行数:10,代码来源:index.php

示例11: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return void
  */
 public function menuConfig()
 {
     $this->MOD_MENU = array('function' => array('scheduler' => $GLOBALS['LANG']->getLL('function.scheduler'), 'check' => $GLOBALS['LANG']->getLL('function.check'), 'info' => $GLOBALS['LANG']->getLL('function.info')));
     parent::menuConfig();
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:10,代码来源:SchedulerModuleController.php

示例12: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return void
  */
 public function menuConfig()
 {
     $this->MOD_MENU = array('function' => array('scheduler' => $this->getLanguageService()->getLL('function.scheduler'), 'check' => $this->getLanguageService()->getLL('function.check'), 'info' => $this->getLanguageService()->getLL('function.info')));
     parent::menuConfig();
 }
开发者ID:dachcom-digital,项目名称:TYPO3.CMS,代码行数:10,代码来源:SchedulerModuleController.php

示例13: menuConfig

 /**
  *
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  * NEW: The menu is built from the TSConfig now. This makes is easier for
  * other extensions to add own menu items to this menu.
  *
  * @return    void
  *
  */
 function menuConfig()
 {
     global $LANG;
     /** @var $LANG \TYPO3\CMS\Lang\LanguageService */
     $items = array();
     foreach ($this->modTSconfig['properties']['sections.'] as $k => $v) {
         if ($v === 'MMFORUM_SECTION_ITEM') {
             $c = $this->modTSconfig['properties']['sections.'][$k . '.'];
             $items["{$k}"] = $c['name'] ? $LANG->sL($c['name'], 1) : $LANG->get('menu.' . $c['id']);
         }
     }
     $this->MOD_MENU = array('function' => $items);
     parent::menuConfig();
 }
开发者ID:rabe69,项目名称:mm_forum,代码行数:23,代码来源:index.php

示例14: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return void
  */
 public function menuConfig()
 {
     $language = $this->getLanguageService();
     if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][COMMERCE_EXTKEY]['extConf']['allowAggregation'] == 1) {
         $this->MOD_MENU = array('function' => array('1' => $language->getLL('statistics'), '2' => $language->getLL('incremental_aggregation'), '3' => $language->getLL('complete_aggregation')));
     } else {
         $this->MOD_MENU = array('function' => array('1' => $language->getLL('statistics')));
     }
     parent::menuConfig();
 }
开发者ID:AndreasA,项目名称:commerce,代码行数:15,代码来源:StatisticModuleController.php

示例15: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return    void
  */
 public function menuConfig()
 {
     $this->MOD_MENU = array('function' => array('1' => $this->languageService->getLL('function1'), '2' => $this->languageService->getLL('function2'), '3' => $this->languageService->getLL('function3')));
     parent::menuConfig();
 }
开发者ID:Entwicklungshilfe-NRW,项目名称:wmdb_base_ewh,代码行数:10,代码来源:index.php


注:本文中的TYPO3\CMS\Backend\Module\BaseScriptClass::menuConfig方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。