本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例10: menuConfig
/**
* Adds items to the ->MOD_MENU array. Used for the function menu selector.
*
* @return void
*/
function menuConfig()
{
global $LANG;
parent::menuConfig();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}