Documentation TYPO3 par Ameos |
Public Member Functions | |
webPageTree () | |
wrapIcon ($icon, &$row) | |
wrapStop ($str, $row) | |
wrapTitle ($title, $row, $bank=0) | |
printTree ($treeArr= '') | |
PMicon ($row, $a, $c, $nextCount, $exp) | |
PMiconATagWrap ($icon, $cmd, $isExpand=true) | |
getBrowsableTree () | |
getTree ($uid, $depth=999, $blankLineCode='', $subCSSclass='') | |
Public Attributes | |
$ext_showPageId | |
$ext_IconMode | |
$ajaxStatus = false |
Definition at line 72 of file class.webpagetree.php.
webPageTree::webPageTree | ( | ) |
Calls init functions
Definition at line 83 of file class.webpagetree.php.
References t3lib_browseTree::init().
webPageTree::wrapIcon | ( | $ | icon, | |
&$ | row | |||
) |
Wrapping icon in browse tree
string | Icon IMG code | |
array | Data row for element. |
Definition at line 94 of file class.webpagetree.php.
References t3lib_treeView::addTagAttributes(), t3lib_treeView::getJumpToParam(), and t3lib_BEfunc::isRecordLocked().
webPageTree::wrapStop | ( | $ | str, | |
$ | row | |||
) |
Adds a red "+" to the input string, $str, if the field "php_tree_stop" in the $row (pages) is set
string | Input string, like a page title for the tree | |
array | record row with "php_tree_stop" field |
Reimplemented from t3lib_treeView.
Definition at line 132 of file class.webpagetree.php.
Referenced by getTree().
webPageTree::wrapTitle | ( | $ | title, | |
$ | row, | |||
$ | bank = 0 | |||
) |
Wrapping $title in a-tags.
string | Title string | |
string | Item record | |
integer | Bank pointer (which mount point number) |
Reimplemented from t3lib_treeView.
Definition at line 148 of file class.webpagetree.php.
References t3lib_treeView::$title, and t3lib_treeView::getJumpToParam().
Referenced by printTree().
webPageTree::printTree | ( | $ | treeArr = '' |
) |
Compiles the HTML code for displaying the structure found inside the ->tree array
array | "tree-array" - if blank string, the internal ->tree array is used. |
Reimplemented from t3lib_treeView.
Definition at line 167 of file class.webpagetree.php.
References t3lib_div::_GP(), t3lib_browseTree::getTitleStr(), and wrapTitle().
Referenced by getBrowsableTree().
webPageTree::PMicon | ( | $ | row, | |
$ | a, | |||
$ | c, | |||
$ | nextCount, | |||
$ | exp | |||
) |
Generate the plus/minus icon for the browsable tree.
array | record for the entry | |
integer | The current entry number | |
integer | The total number of entries. If equal to $a, a "bottom" element is returned. | |
integer | The number of sub-elements to the current element. | |
boolean | The element was expanded to render subelements if this flag is set. |
Reimplemented from t3lib_treeView.
Definition at line 280 of file class.webpagetree.php.
References PMiconATagWrap().
Referenced by getTree().
webPageTree::PMiconATagWrap | ( | $ | icon, | |
$ | cmd, | |||
$ | isExpand = true | |||
) |
Wrap the plus/minus icon in a link
string | HTML string to wrap, probably an image tag. | |
string | Command for 'PM' get var |
Definition at line 301 of file class.webpagetree.php.
Referenced by getBrowsableTree(), and PMicon().
webPageTree::getBrowsableTree | ( | ) |
Will create and return the HTML code for a browsable tree Is based on the mounts found in the internal array ->MOUNTS (set in the constructor)
Reimplemented from t3lib_treeView.
Definition at line 318 of file class.webpagetree.php.
References t3lib_treeView::getIcon(), t3lib_treeView::getRecord(), t3lib_treeView::getRootIcon(), t3lib_treeView::getRootRecord(), getTree(), t3lib_treeView::initializePositionSaving(), PMiconATagWrap(), printTree(), and t3lib_treeView::reset().
webPageTree::getTree | ( | $ | uid, | |
$ | depth = 999 , |
|||
$ | blankLineCode = '' , |
|||
$ | subCSSclass = '' | |||
) |
Fetches the data for the tree
integer | item id for which to select subitems (parent id) | |
integer | Max depth (recursivity limit) | |
string | ? (internal) |
Definition at line 383 of file class.webpagetree.php.
References t3lib_treeView::expandNext(), t3lib_treeView::getCount(), t3lib_treeView::getDataCount(), t3lib_treeView::getDataFree(), t3lib_treeView::getDataInit(), t3lib_treeView::getDataNext(), t3lib_treeView::getIcon(), PMicon(), and wrapStop().
Referenced by getBrowsableTree().