[ 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_arraybrowser.php (sommaire)

Class for displaying an array as a tree $Id: class.t3lib_arraybrowser.php 1421 2006-04-10 09:27:15Z mundaun $ Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj XHTML compliant

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

Définit 1 class

t3lib_arrayBrowser:: (6 méthodes):
  tree()
  wrapValue()
  wrapArrayKey()
  getSearchKeys()
  fixed_lgd()
  depthKeys()


Classe: t3lib_arrayBrowser  - X-Ref

Class for displaying an array as a tree
See the extension 'lowlevel' /config (Backend module 'Tools > Configuration')

tree($arr, $depth_in, $depthData)   X-Ref
Make browsable tree
Before calling this function you may want to set some of the internal vars like depthKeys, regexMode and fixedLgd. For examples see SC_mod_tools_config_index::main()

param: array        The array to display
param: string        Key-position id. Build up during recursive calls - [key1].[key2].[key3] - an so on.
param: string        Depth-data - basically a prefix for the icons. For calling this function from outside, let it stay blank.
return: string        HTML for the tree

wrapValue($theValue,$depth)   X-Ref
Wrapping the value in bold tags etc.

param: string        The title string
param: string        Depth path
return: string        Title string, htmlspecialchars()'ed

wrapArrayKey($label,$depth,$theValue)   X-Ref
Wrapping the value in bold tags etc.

param: string        The title string
param: string        Depth path
param: string        The value for the array entry.
return: string        Title string, htmlspecialchars()'ed

getSearchKeys($keyArr, $depth_in, $searchString, $keyArray)   X-Ref
Creates an array with "depthKeys" which will expand the array to show the search results

param: array        The array to search for the value
param: string        Depth string - blank for first call (will build up during recursive calling creating an id of the position: [key1].[key2].[key3]
param: string        The string to search for
param: array        Key array, for first call pass empty array
return: array

fixed_lgd($string,$chars)   X-Ref
Fixed length function

param: string        String to process
param: integer        Max number of chars
return: string        Processed string

depthKeys($arr,$settings)   X-Ref
Function modifying the depthKey array

param: array        Array with instructions to open/close nodes.
param: array        Input depth_key array
return: array        Output depth_key array with entries added/removed based on $arr



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