Documentation TYPO3 par Ameos |
Public Member Functions | |
t3lib_folderTree () | |
wrapIcon ($icon, $row) | |
wrapTitle ($title, $row, $bank=0) | |
getId ($v) | |
getJumpToParam ($v) | |
getTitleStr ($row, $titleLen=30) | |
getBrowsableTree () | |
getFolderTree ($files_path, $depth=999, $depthData='') | |
getCount ($files_path) | |
initializePositionSaving () |
Definition at line 82 of file class.t3lib_foldertree.php.
t3lib_folderTree::t3lib_folderTree | ( | ) |
Constructor function of the class
Definition at line 89 of file class.t3lib_foldertree.php.
Referenced by localFolderTree::localFolderTree().
t3lib_folderTree::wrapIcon | ( | $ | icon, | |
$ | row | |||
) |
Wrapping the folder icon
string | The image tag for the icon | |
array | The row for the current element |
Reimplemented from t3lib_treeView.
Reimplemented in localFolderTree.
Definition at line 107 of file class.t3lib_foldertree.php.
References t3lib_treeView::addTagAttributes(), and getJumpToParam().
Referenced by getBrowsableTree(), and getFolderTree().
t3lib_folderTree::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.
Reimplemented in filelistFolderTree.
Definition at line 130 of file class.t3lib_foldertree.php.
References t3lib_treeView::$title, and getJumpToParam().
t3lib_folderTree::getId | ( | $ | v | ) |
Returns the id from the record - for folders, this is an md5 hash.
array | Record array |
Reimplemented from t3lib_treeView.
Definition at line 145 of file class.t3lib_foldertree.php.
t3lib_folderTree::getJumpToParam | ( | $ | v | ) |
Returns jump-url parameter value.
array | The record array. |
Reimplemented from t3lib_treeView.
Definition at line 155 of file class.t3lib_foldertree.php.
Referenced by filelistFolderTree::wrapIcon(), wrapIcon(), filelistFolderTree::wrapTitle(), and wrapTitle().
t3lib_folderTree::getTitleStr | ( | $ | row, | |
$ | titleLen = 30 | |||
) |
Returns the title for the input record. If blank, a "no title" labele (localized) will be returned. '_title' is used for setting an alternative title for folders.
array | The input row array (where the key "_title" is used for the title) | |
integer | Title length (30) |
Reimplemented from t3lib_treeView.
Definition at line 167 of file class.t3lib_foldertree.php.
Referenced by filelistFolderTree::printTree().
t3lib_folderTree::getBrowsableTree | ( | ) |
Will create and return the HTML code for a browsable tree of folders. Is based on the mounts found in the internal array ->MOUNTS (set in the constructor)
Reimplemented from t3lib_treeView.
Reimplemented in filelistFolderTree.
Definition at line 177 of file class.t3lib_foldertree.php.
References getFolderTree(), initializePositionSaving(), t3lib_treeView::PM_ATagWrap(), t3lib_treeView::printTree(), t3lib_treeView::reset(), t3lib_iconWorks::skinImg(), and wrapIcon().
t3lib_folderTree::getFolderTree | ( | $ | files_path, | |
$ | depth = 999 , |
|||
$ | depthData = '' | |||
) |
Fetches the data for the tree
string | Abs file path | |
integer | Max depth (recursivity limit) | |
string | HTML-code prefix for recursive calls. |
Definition at line 240 of file class.t3lib_foldertree.php.
References t3lib_treeView::$title, t3lib_treeView::expandNext(), t3lib_div::get_dirs(), getCount(), t3lib_BEfunc::getPathType_web_nonweb(), t3lib_iconWorks::skinImg(), and wrapIcon().
Referenced by getBrowsableTree().
t3lib_folderTree::getCount | ( | $ | files_path | ) |
Counts the number of directories in a file path.
string | File path. |
Reimplemented from t3lib_treeView.
Definition at line 320 of file class.t3lib_foldertree.php.
References t3lib_div::get_dirs().
Referenced by filelistFolderTree::getFolderTree(), and getFolderTree().
t3lib_folderTree::initializePositionSaving | ( | ) |
Get stored tree structure AND updating it if needed according to incoming PM GET var.
Reimplemented from t3lib_treeView.
Reimplemented in localFolderTree.
Definition at line 336 of file class.t3lib_foldertree.php.
References t3lib_div::_GP(), and t3lib_treeView::savePosition().
Referenced by filelistFolderTree::getBrowsableTree(), and getBrowsableTree().