Public Member Functions | |
init ($clause='') | |
Initialize, setting what is necessary for browsing pages. | |
getTitleAttrib ($row) | |
Creates title attribute content for pages. | |
wrapIcon ($icon, $row) | |
Wrapping the image tag, $icon, for the row, $row (except for mount points). |
|
Creates title attribute content for pages. Uses API function in t3lib_BEfunc which will retrieve lots of useful information for pages.
Definition at line 107 of file class.t3lib_browsetree.php. References t3lib_BEfunc::titleAttribForPages(). 00107 { 00108 return t3lib_BEfunc::titleAttribForPages($row,'1=1 '.$this->clause,0); 00109 }
|
|
Initialize, setting what is necessary for browsing pages. Using the current user.
Definition at line 83 of file class.t3lib_browsetree.php. References t3lib_extMgm::isLoaded(), and table(). Referenced by localPageTree::localPageTree(). 00083 { 00084 // This is very important for making trees of pages: Filtering out deleted pages, pages with no access to and sorting them correctly: 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 }
|
|
Wrapping the image tag, $icon, for the row, $row (except for mount points).
Reimplemented in localPageTree, localPageTree, and localPageTree. Definition at line 119 of file class.t3lib_browsetree.php. 00119 { 00120 // Add title attribute to input icon tag 00121 $theIcon = $this->addTagAttributes($icon,($this->titleAttrib ? $this->titleAttrib.'="'.$this->getTitleAttrib($row).'"' : '')); 00122 00123 // Wrap icon in click-menu link. 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 }
|