Feature #14874 » class.t3lib_treeview.php.diff
class.t3lib_treeview.php 2005-07-21 16:15:20.000000000 +0200 | ||
---|---|---|
$treeArr=array_merge($treeArr,$this->tree);
|
||
}
|
||
}
|
||
return $this->printTree($treeArr);
|
||
$showId=intval($this->BE_USER->uc['showPageId']);
|
||
return $this->printTree($treeArr, $showId);
|
||
}
|
||
|
||
/**
|
||
... | ... | |
* @param array "tree-array" - if blank string, the internal ->tree array is used.
|
||
* @return string The HTML code for the tree
|
||
*/
|
||
function printTree($treeArr='') {
|
||
function printTree($treeArr='', $showId=0) {
|
||
$titleLen=intval($this->BE_USER->uc['titleLen']);
|
||
if (!is_array($treeArr)) $treeArr=$this->tree;
|
||
$out='';
|
||
... | ... | |
<tr>
|
||
<td id="'.$idAttr.'">'.
|
||
$v['HTML'].
|
||
$this->wrapTitle($this->getTitleStr($v['row'],$titleLen),$v['row'],$v['bank']).
|
||
$this->wrapTitle($this->getTitleStr($v['row'],$titleLen).($showId==1 ? ' ('.$this->getId($v['row']).')' : ''),$v['row'],$v['bank']).
|
||
'</td>
|
||
</tr>
|
||
';
|