Documentation TYPO3 par Ameos

class.tx_kickstarter_modfunc1.php

00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 2005 Daniel Bruen (dbruen@saltation.de)
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 *
00017 *  This script is distributed in the hope that it will be useful,
00018 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020 *  GNU General Public License for more details.
00021 *
00022 *  This copyright notice MUST APPEAR in all copies of the script!
00023 ***************************************************************/
00033 require_once(PATH_t3lib."class.t3lib_extobjbase.php");
00034 require_once(t3lib_extMgm::extPath('kickstarter').'class.tx_kickstarter_wizard.php');
00035 
00036 class tx_kickstarter_modfunc1 extends t3lib_extobjbase {
00037         function main() {
00038                 $kickstarter = $this->initKickstarter();
00039                 $content = $kickstarter->mgm_wizard();
00040 
00041                 return '</form>'.$this->pObj->doc->section('Kickstarter wizard',$content,0,1).'<form>';
00042         }
00043 
00044         function initKickstarter() {
00045                 $kickstarter = t3lib_div::makeInstance('tx_kickstarter_wizard');
00046                 $kickstarter->color = array($this->pObj->doc->bgColor5,$this->pObj->doc->bgColor4,$this->pObj->doc->bgColor);
00047                 $kickstarter->siteBackPath = $this->pObj->doc->backPath.'../';
00048                 $kickstarter->pObj = &$this->pObj;
00049                 $kickstarter->EMmode = 1;
00050 
00051                 return $kickstarter;
00052         }
00053 }
00054 
00055 class tx_kickstarter_modfunc2 extends tx_kickstarter_modfunc1 {
00056         function main() {
00057                 $kickstarter = $this->initKickstarter();
00058                 if(!$kickstarter->modData['wizArray_ser']) {
00059                         $kickstarter->modData['wizArray_ser'] = base64_encode($this->getWizardFormDat());
00060                 }
00061                 $content = $kickstarter->mgm_wizard();
00062 
00063                 return '</form>'.$this->pObj->doc->section('Kickstarter wizard',$content,0,1).'<form>';
00064         }
00065 
00066         function getWizardFormDat() {
00067                 list($list,$cat)=$this->pObj->getInstalledExtensions();
00068                 $absPath = $this->pObj->getExtPath($this->pObj->CMD['showExt'],$list[$this->pObj->CMD['showExt']]['type']);
00069 
00070                 return @is_file($absPath.'doc/wizard_form.dat') ? t3lib_div::getUrl($absPath.'doc/wizard_form.dat') : '';
00071         }
00072 }
00073 
00074 
00075 
00076 if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/kickstarter/modfunc1/class.tx_kickstarter_modfunc1.php"])      {
00077         include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/kickstarter/modfunc1/class.tx_kickstarter_modfunc1.php"]);
00078 }
00079 
00080 ?>


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