"TYPO3 4.0.1: typo3_src-4.0.1/t3lib/class.t3lib_pagetree.php Source File", "datetime" => "Sat Dec 2 19:22:18 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
00001 <?php 00002 /*************************************************************** 00003 * Copyright notice 00004 * 00005 * (c) 1999-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 ***************************************************************/ 00067 require_once (PATH_t3lib.'class.t3lib_treeview.php'); 00068 00078 class t3lib_pageTree extends t3lib_treeView { 00079 var $fieldArray = Array('uid','title','doktype','php_tree_stop','t3ver_id','t3ver_state','t3ver_swapmode'); 00080 var $defaultList = 'uid,pid,tstamp,sorting,deleted,perms_userid,perms_groupid,perms_user,perms_group,perms_everybody,crdate,cruser_id'; 00081 var $setRecs = 0; 00082 00090 function init($clause='') { 00091 parent::init(' AND deleted=0 '.$clause, 'sorting'); 00092 00093 if (t3lib_extMgm::isLoaded('cms')) { 00094 $this->fieldArray=array_merge($this->fieldArray,array('hidden','starttime','endtime','fe_group','module','extendToSubpages')); 00095 } 00096 $this->table='pages'; 00097 $this->treeName='pages'; 00098 } 00099 00106 function expandNext($id) { 00107 return 1; 00108 } 00109 00123 function PMicon($row,$a,$c,$nextCount,$exp) { 00124 $PM = 'join'; 00125 $BTM = ($a==$c)?'bottom':''; 00126 $icon = '<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/ol/'.$PM.$BTM.'.gif','width="18" height="16"').' alt="" />'; 00127 return $icon; 00128 } 00129 00130 00138 function initializePositionSaving() { 00139 $this->stored=array(); 00140 } 00141 } 00142 00143 00144 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_pagetree.php']) { 00145 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_pagetree.php']); 00146 } 00147 ?>