00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
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');
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 NOT deleted '.$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 ?>