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
00051 require_once (PATH_t3lib.'class.t3lib_treeview.php');
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00074 class t3lib_browseTree extends t3lib_treeView {
00075
00083 function init($clause='') {
00084
00085 parent::init(' AND '.$GLOBALS['BE_USER']->getPagePermsClause(1).' '.$clause, 'sorting');
00086
00087 $this->table = 'pages';
00088 $this->setTreeName('browsePages');
00089 $this->domIdPrefix = 'pages';
00090 $this->iconName = '';
00091 $this->title = $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'];
00092 $this->MOUNTS = $GLOBALS['WEBMOUNTS'];
00093
00094 $this->fieldArray = array_merge($this->fieldArray,array('doktype','php_tree_stop','t3ver_id'));
00095 if (t3lib_extMgm::isLoaded('cms')) {
00096 $this->fieldArray = array_merge($this->fieldArray,array('hidden','starttime','endtime','fe_group','module','extendToSubpages'));
00097 }
00098 }
00099
00107 function getTitleAttrib($row) {
00108 return t3lib_BEfunc::titleAttribForPages($row,'1=1 '.$this->clause,0);
00109 }
00110
00119 function wrapIcon($icon,$row) {
00120
00121 $theIcon = $this->addTagAttributes($icon,($this->titleAttrib ? $this->titleAttrib.'="'.$this->getTitleAttrib($row).'"' : ''));
00122
00123
00124 if (!$this->ext_IconMode) {
00125 $theIcon = $GLOBALS['TBE_TEMPLATE']->wrapClickMenuOnIcon($theIcon,$this->treeName,$this->getId($row),0);
00126 } elseif (!strcmp($this->ext_IconMode,'titlelink')) {
00127 $aOnClick = 'return jumpTo(\''.$this->getJumpToParam($row).'\',this,\''.$this->domIdPrefix.$this->getId($row).'_'.$this->bank.'\');';
00128 $theIcon='<a href="#" onclick="'.htmlspecialchars($aOnClick).'">'.$theIcon.'</a>';
00129 }
00130 return $theIcon;
00131 }
00132 }
00133
00134 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_browsetree.php']) {
00135 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_browsetree.php']);
00136 }
00137 ?>