/**
  * 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();
 }
 /**
  * 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();
 }
Exemple #3
0
 /**
  * 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();
 }
 /**
  * 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();
 }
Exemple #5
0
	/**
	 * Adds items to the ->MOD_MENU array. Used for the function menu selector.
	 *
	 * @return void
	 */
	public function menuConfig() {
		$languageService = $this->getLanguageService();
		$this->MOD_MENU = array(
			'function' => array(
				0 => $languageService->getLL('Debug_log'),
				'info' => $languageService->getLL('Cached_info'),
				'sqlcheck' => $languageService->getLL('SQL_check')
			)
		);
		parent::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();
 }
Exemple #7
0
 /**
  * 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();
 }
 /**
  * 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();
 }
 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();
 }
Exemple #10
0
 /**
  * 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();
 }
Exemple #11
0
 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return  void
  */
 function menuConfig()
 {
     global $LANG;
     parent::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();
 }
 /**
  * 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();
 }
Exemple #14
0
 /**
  *
  * 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();
 }
 /**
  * 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();
 }
 /**
  * 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();
 }
 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return void
  */
 public function menuConfig()
 {
     $this->MOD_MENU = array('function' => array('create' => $GLOBALS['LANG']->getLL('moduleFunction.tx_kickstarter_modfunc1'), 'edit' => $GLOBALS['LANG']->getLL('moduleFunction.tx_kickstarter_modfunc2')));
     parent::menuConfig();
 }
Exemple #18
0
 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  */
 public function menuConfig()
 {
     $this->MOD_MENU = array('function' => array('1' => $this->LANG->sL('LLL:EXT:t3jquery/Classes/Module/locallang.xml:function1'), '2' => $this->LANG->sL('LLL:EXT:t3jquery/Classes/Module/locallang.xml:function2'), '3' => $this->LANG->sL('LLL:EXT:t3jquery/Classes/Module/locallang.xml:function3'), '4' => $this->LANG->sL('LLL:EXT:t3jquery/Classes/Module/locallang.xml:function4')));
     if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('extdeveval')) {
         $this->MOD_MENU['function'][5] = $this->LANG->sL('LLL:EXT:t3jquery/Classes/Module/locallang.xml:function5');
     }
     parent::menuConfig();
 }
Exemple #19
0
 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return  void
  */
 function menuConfig()
 {
     $this->loadExtConf();
     $this->MOD_MENU = array('action' => array('' => $GLOBALS['LANG']->getLL('general.action.blank.title'), 'link' => $GLOBALS['LANG']->getLL('general.action.edit.link.title'), 'inlineEdit' => $GLOBALS['LANG']->getLL('general.action.edit.inline.title'), 'export_excel' => $GLOBALS['LANG']->getLL('general.action.export.excel.title'), 'export_xml' => $GLOBALS['LANG']->getLL('general.action.export.xml.title')), 'lang' => array(), 'onlyChangedContent' => '', 'noHidden' => '');
     // Load system languages into menu:
     /** @var $t8Tools TranslationConfigurationProvider */
     $t8Tools = GeneralUtility::makeInstance(TranslationConfigurationProvider::class);
     $sysL = $t8Tools->getSystemLanguages();
     foreach ($sysL as $sL) {
         if ($sL['uid'] > 0 && $GLOBALS['BE_USER']->checkLanguageAccess($sL['uid'])) {
             if ($this->lConf['enable_hidden_languages'] == 1) {
                 $this->MOD_MENU['lang'][$sL['uid']] = $sL['title'];
             } elseif ($sL['hidden'] == 0) {
                 $this->MOD_MENU['lang'][$sL['uid']] = $sL['title'];
             }
         }
     }
     parent::menuConfig();
 }
 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return void
  */
 public function menuConfig()
 {
     $language = $this->getLanguageService();
     if (SettingsFactory::getInstance()->getExtConf('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();
 }
 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return 	void
  */
 public function menuConfig()
 {
     $this->MOD_MENU = array('function' => array(0 => $GLOBALS['LANG']->getLL('Debug_log'), 'info' => $GLOBALS['LANG']->getLL('Cached_info'), 'sqlcheck' => $GLOBALS['LANG']->getLL('SQL_check')));
     parent::menuConfig();
 }