Documentation TYPO3 par Ameos

t3lib_folderTree Class Reference

Inheritance diagram for t3lib_folderTree:

Inheritance graph
Collaboration diagram for t3lib_folderTree:

Collaboration graph
List of all members.

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 ()

Detailed Description

Definition at line 82 of file class.t3lib_foldertree.php.

Constructor & Destructor Documentation

t3lib_folderTree::t3lib_folderTree  ) 

Constructor function of the class


Definition at line 89 of file class.t3lib_foldertree.php.

Member Function Documentation

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)

string HTML code for the browsable tree

Reimplemented from t3lib_treeView.

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::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 getFolderTree().

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.
integer The count of items on the level
See also:

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::getId v  ) 

Returns the id from the record - for folders, this is an md5 hash.

array Record array
integer The "uid" field value.

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.
string The jump-url parameter.

Reimplemented from t3lib_treeView.

Definition at line 155 of file class.t3lib_foldertree.php.

Referenced by wrapIcon(), 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)
string The title.

Reimplemented from t3lib_treeView.

Definition at line 167 of file class.t3lib_foldertree.php.

t3lib_folderTree::initializePositionSaving  ) 

Get stored tree structure AND updating it if needed according to incoming PM GET var.

void private

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 getBrowsableTree().

t3lib_folderTree::wrapIcon icon,

Wrapping the folder icon

string The image tag for the icon
array The row for the current element
string The processed icon input value. private

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,
bank = 0

Wrapping $title in a-tags.

string Title string
string Item record
integer Bank pointer (which mount point number)
string private

Reimplemented from t3lib_treeView.

Definition at line 130 of file class.t3lib_foldertree.php.

References t3lib_treeView::$bank, t3lib_treeView::$title, and getJumpToParam().

The documentation for this class was generated from the following file:

Généré par L'expert TYPO3 avec  doxygen 1.4.6