TYPO3 CMS  TYPO3_6-2
WebFunctionWizardsBaseController.php
Go to the documentation of this file.
1 <?php
3 
24 
28  public $function_key = 'wiz';
29 
39  public function init(&$pObj, $conf) {
40  // OK, handles ordinary init. This includes setting up the menu array with ->modMenu
41  parent::init($pObj, $conf);
42  // Making sure that any further external classes are added to the include_once array.
43  // Notice that inclusion happens twice in the main script because of this!!!
45  }
46 
53  public function modMenu() {
54  $GLOBALS['LANG']->includeLLFile('EXT:func_wizards/locallang.xlf');
55  $modMenuAdd = array(
56  $this->function_key => array()
57  );
58  $modMenuAdd[$this->function_key] = $this->pObj->mergeExternalItems($this->pObj->MCONF['name'], $this->function_key, $modMenuAdd[$this->function_key]);
60  $this->pObj->modTSconfig['properties'],
61  $modMenuAdd[$this->function_key],
62  'menu.' . $this->function_key
63  );
64  return $modMenuAdd;
65  }
66 
73  public function main() {
74  global $SOBE, $LANG;
75  $menu = $LANG->getLL('wiz_lWizards', TRUE) . ': ' . \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu(
76  $this->pObj->id,
77  'SET[wiz]',
78  $this->pObj->MOD_SETTINGS['wiz'],
79  $this->pObj->MOD_MENU['wiz']
80  );
81  $theOutput .= $this->pObj->doc->section('', '<span class="nobr">' . $menu . '</span>');
82  $content = '';
83  $content .= $theOutput;
84  $content .= $this->pObj->doc->spacer(20);
85  $content .= $this->extObjContent();
86  return $content;
87  }
88 
89 }
static getFuncMenu($mainParams, $elementName, $currentValue, $menuItems, $script='', $addparams='')
static unsetMenuItems($modTSconfig, $itemArray, $TSref)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
$SOBE
Definition: db_layout.php:121