[ Index ]
 

Code source de Typo3 4.1.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/t3lib/ -> class.t3lib_foldertree.php (sommaire)

Generate a folder tree $Id: class.t3lib_foldertree.php 955 2005-12-28 00:49:12Z mundaun $ Revised for TYPO3 3.6 November/2003 by Kasper Skaarhoj

Author: Kasper Skaarhoj <kasperYYYY@typo3.com>
Poids: 368 lignes (11 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

t3lib_folderTree:: (10 méthodes):
  t3lib_folderTree()
  wrapIcon()
  wrapTitle()
  getId()
  getJumpToParam()
  getTitleStr()
  getBrowsableTree()
  getFolderTree()
  getCount()
  initializePositionSaving()


Classe: t3lib_folderTree  - X-Ref

Extension class for the t3lib_treeView class, specially made for browsing folders in the File module

t3lib_folderTree()   X-Ref
Constructor function of the class

return: void

wrapIcon($icon,$row)   X-Ref
Wrapping the folder icon

param: string        The image tag for the icon
param: array        The row for the current element
return: string        The processed icon input value.

wrapTitle($title,$row,$bank=0)   X-Ref
Wrapping $title in a-tags.

param: string        Title string
param: string        Item record
param: integer        Bank pointer (which mount point number)
return: string

getId($v)   X-Ref
Returns the id from the record - for folders, this is an md5 hash.

param: array        Record array
return: integer        The "uid" field value.

getJumpToParam($v)   X-Ref
Returns jump-url parameter value.

param: array        The record array.
return: string        The jump-url parameter.

getTitleStr($row,$titleLen=30)   X-Ref
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.

param: array        The input row array (where the key "_title" is used for the title)
param: integer        Title length (30)
return: string        The title.

getBrowsableTree()   X-Ref
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)

return: string        HTML code for the browsable tree

getFolderTree($files_path, $depth=999, $depthData='')   X-Ref
Fetches the data for the tree

param: string        Abs file path
param: integer        Max depth (recursivity limit)
param: string        HTML-code prefix for recursive calls.
return: integer        The count of items on the level

getCount($files_path)   X-Ref
Counts the number of directories in a file path.

param: string        File path.
return: integer

initializePositionSaving()   X-Ref
Get stored tree structure AND updating it if needed according to incoming PM GET var.

return: void



Généré le : Sun Nov 25 17:13:16 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics