Documentation TYPO3 par Ameos |
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 ***************************************************************/ 00034 unset($MCONF); 00035 require ("conf.php"); 00036 require ($BACK_PATH."init.php"); 00037 require ($BACK_PATH."template.php"); 00038 $LANG->includeLLFile("EXT:taskcenter/task/locallang.php"); 00039 require_once(PATH_t3lib."class.t3lib_scbase.php"); 00040 require_once("class.mod_user_task.php"); 00041 00042 $BE_USER->modAccess($MCONF,1); 00043 00044 00045 00046 // *************************** 00047 // Script Classes 00048 // *************************** 00049 class SC_mod_user_task_overview extends t3lib_SCbase { 00050 var $allExtClassConf=array(); 00051 var $backPath; 00052 var $BE_USER; 00053 00058 function includeAllClasses() { 00059 reset($this->MOD_MENU["function"]); 00060 while(list($k)=each($this->MOD_MENU["function"])) { 00061 $curExtClassConf = $this->getExternalItemConfig($this->MCONF["name"],"function",$k); 00062 if (is_array($curExtClassConf) && $curExtClassConf["path"]) { 00063 $this->allExtClassConf[]=$curExtClassConf; 00064 $this->include_once[]=$curExtClassConf["path"]; 00065 } 00066 } 00067 } 00068 function main() { 00069 global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS; 00070 00071 $this->doc = t3lib_div::makeInstance("mediumDoc"); 00072 $this->doc->form='<form action="" method="post">'; 00073 $this->backPath = $this->doc->backPath = $BACK_PATH; 00074 00075 // JavaScript 00076 $this->doc->JScode = ' 00077 <script language="javascript" type="text/javascript"> 00078 script_ended = 0; 00079 function jumpToUrl(URL) { 00080 document.location = URL; 00081 } 00082 </script> 00083 '; 00084 00085 $this->doc->inDocStylesArray[] = ' 00086 BODY#ext-taskcenter-task-overview-php DIV.typo3-mediumDoc { width: 99%; } 00087 '; 00088 00089 $this->content=""; 00090 $this->content.=$this->doc->startPage($LANG->getLL("title")); 00091 $this->content.=$this->doc->header($LANG->getLL("title")); 00092 $this->content.=$this->doc->spacer(5); 00093 00094 //debug($this->allExtClassConf); 00095 reset($this->allExtClassConf); 00096 while(list(,$conf)=each($this->allExtClassConf)) { 00097 $extObj = t3lib_div::makeInstance($conf["name"]); 00098 $extObj->init($this,$conf); // THis is just to make sure the LOCAL_LANG is included for all listed extensions. If they OVERRIDE each other there are trouble! By this initialization the parsetime is approx. double, but still acceptable. 00099 $extObj->backPath = $this->backPath; 00100 $extObj->mod_user_task_init($BE_USER); 00101 $this->content.=$extObj->overview_main($this); 00102 } 00103 00104 $this->content.=' 00105 <br /> 00106 <p class="c-refresh"> 00107 <a href="'.htmlspecialchars(t3lib_div::getIndpEnv('REQUEST_URI')).'">'. 00108 '<img'.t3lib_iconWorks::skinImg('', $this->backPath.'gfx/refresh_n.gif','width="14" height="14"').' title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.refreshList',1).'" alt="" />'. 00109 $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.refreshList',1).'</a> 00110 </p> 00111 <br />'; 00112 } 00113 function printContent() { 00114 00115 $this->content.=$this->doc->endPage(); 00116 echo $this->content; 00117 } 00118 } 00119 00120 // Include extension? 00121 if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/taskcenter/task/overview.php"]) { 00122 include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/taskcenter/task/overview.php"]); 00123 } 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 // Make instance: 00137 $SOBE = t3lib_div::makeInstance("SC_mod_user_task_overview"); 00138 $SOBE->init(); 00139 $SOBE->includeAllClasses(); 00140 00141 // Include files? 00142 foreach($SOBE->include_once as $INC_FILE) include_once($INC_FILE); 00143 00144 $SOBE->main(); 00145 $SOBE->printContent(); 00146 ?>