Documentation TYPO3 par Ameos

class.tx_funcwizards_webfunc.php

00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 1999-2004 Kasper Skaarhoj (kasperYYYY@typo3.com)
00006 *  All rights reserved
00007 *
00008 *  This script is part of the TYPO3 project. The TYPO3 project is
00009 *  free software; you can redistribute it and/or modify
00010 *  it under the terms of the GNU General Public License as published by
00011 *  the Free Software Foundation; either version 2 of the License, or
00012 *  (at your option) any later version.
00013 *
00014 *  The GNU General Public License can be found at
00015 *  http://www.gnu.org/copyleft/gpl.html.
00016 *  A copy is found in the textfile GPL.txt and important notices to the license
00017 *  from the author is found in LICENSE.txt distributed with these scripts.
00018 *
00019 *
00020 *  This script is distributed in the hope that it will be useful,
00021 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023 *  GNU General Public License for more details.
00024 *
00025 *  This copyright notice MUST APPEAR in all copies of the script!
00026 ***************************************************************/
00050 require_once(PATH_t3lib.'class.t3lib_extobjbase.php');
00051 
00052 
00053 
00054 
00055 
00056 
00057 
00066 class tx_funcwizards_webfunc extends t3lib_extobjbase {
00067         var $function_key = 'wiz';
00068 
00078         function init(&$pObj,$conf)     {
00079                         // OK, handles ordinary init. This includes setting up the menu array with ->modMenu
00080                 parent::init($pObj,$conf);
00081 
00082                         // Making sure that any further external classes are added to the include_once array. Notice that inclusion happens twice in the main script because of this!!!
00083                 $this->handleExternalFunctionValue();
00084         }
00085 
00092         function modMenu()      {
00093                 global $LANG;
00094 
00095                 $modMenuAdd = array(
00096                         $this->function_key => array()
00097                 );
00098 
00099                 $modMenuAdd[$this->function_key] = $this->pObj->mergeExternalItems($this->pObj->MCONF['name'],$this->function_key,$modMenuAdd[$this->function_key]);
00100                 $modMenuAdd[$this->function_key] = t3lib_BEfunc::unsetMenuItems($this->pObj->modTSconfig['properties'],$modMenuAdd[$this->function_key],'menu.'.$this->function_key);
00101 
00102                 return $modMenuAdd;
00103         }
00104 
00111         function main() {
00112                 global $SOBE,$LANG;
00113 
00114                 $menu= $LANG->getLL('wiz_lWizards',1).': '.t3lib_BEfunc::getFuncMenu($this->pObj->id,'SET[wiz]',$this->pObj->MOD_SETTINGS['wiz'],$this->pObj->MOD_MENU['wiz']);
00115                 $theOutput.=$this->pObj->doc->section('','<span class="nobr">'.$menu.'</span>');
00116 
00117                 $content = '';
00118                 $content.=$theOutput;
00119                 $content.=$this->pObj->doc->spacer(5);
00120                 $content.=$this->extObjContent();
00121 
00122                 return $content;
00123         }
00124 }
00125 
00126 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/func_wizards/class.tx_funcwizards_webfunc.php'])       {
00127         include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/func_wizards/class.tx_funcwizards_webfunc.php']);
00128 }
00129 ?>


Généré par L'expert TYPO3 avec  doxygen 1.4.6