Documentation TYPO3 par Ameos

class.tx_kickstarter_section_ts.php

00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 2001-2005 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 ***************************************************************/
00031 require_once(t3lib_extMgm::extPath("kickstarter")."class.tx_kickstarter_sectionbase.php");
00032  
00033 class tx_kickstarter_section_ts extends tx_kickstarter_sectionbase {
00034   var $sectionID = 'ts';
00038         function render_wizard() {
00039                 $lines=array();
00040 
00041                 $action = explode(":",$this->wizard->modData["wizAction"]);
00042                 if ($action[0]=="edit") {
00043                         $action[1]=1;
00044                         $this->regNewEntry($this->sectionID,$action[1]);
00045 
00046                         $lines = $this->catHeaderLines($lines,$this->sectionID,$this->wizard->options[$this->sectionID],"&nbsp;",$action[1]);
00047                         $piConf = $this->wizard->wizArray[$this->sectionID][$action[1]];
00048                         $ffPrefix='['.$this->sectionID.']['.$action[1].']';
00049 
00050                                 // Enter constants
00051                         $subContent="<strong>Constants:</strong><BR>".
00052                                 $this->renderTextareaBox($ffPrefix."[constants]",$piConf["constants"]);
00053                         $lines[]='<tr'.$this->bgCol(3).'><td>'.$this->fw($subContent).'</td></tr>';
00054 
00055                                 // Enter setup
00056                         $subContent="<strong>Setup:</strong><BR>".
00057                                 $this->renderTextareaBox($ffPrefix."[setup]",$piConf["setup"]);
00058                         $lines[]='<tr'.$this->bgCol(3).'><td>'.$this->fw($subContent).'</td></tr>';
00059                 }
00060 
00061                 /* HOOK: Place a hook here, so additional output can be integrated */
00062                 if(is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['kickstarter']['add_cat_ts'])) {
00063                   foreach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['kickstarter']['add_cat_ts'] as $_funcRef) {
00064                     $lines = t3lib_div::callUserFunction($_funcRef, $lines, $this);
00065                   }
00066                 }
00067 
00068                 $content = '<table border=0 cellpadding=2 cellspacing=2>'.implode("",$lines).'</table>';
00069                 return $content;
00070         }
00071 
00072 
00073 
00074 
00075 
00076 
00077 
00078 
00079 
00083         function render_extPart($k,$config,$extKey) {
00084 
00085         }
00086 
00087 }
00088 
00089 
00090 // Include ux_class extension?
00091 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/kickstarter/sections/class.tx_kickstarter_section_ts.php']) {
00092         include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/kickstarter/sections/class.tx_kickstarter_section_ts.php']);
00093 }
00094 
00095 
00096 ?>


Généré par Le spécialiste TYPO3 avec  doxygen 1.4.6