Solutions Open Source

Référence de la classe t3lib_arrayBrowser

Liste de tous les membres

Fonctions membres publiques

 tree ($arr, $depth_in, $depthData)
 wrapValue ($theValue, $depth)
 wrapArrayKey ($label, $depth, $theValue)
 getSearchKeys ($keyArr, $depth_in, $searchString, $keyArray)
 fixed_lgd ($string, $chars)
 depthKeys ($arr, $settings)

Attributs publics

 $expAll = FALSE
 $dontLinkVar = FALSE
 $depthKeys = array()
 $searchKeys = array()
 $fixedLgd = 1
 $regexMode = 0
 $varName = ''


Documentation des fonctions membres

t3lib_arrayBrowser::tree ( arr,
depth_in,
depthData 
)

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ètres:
array The array to display
string Key-position id. Build up during recursive calls - [key1].[key2].[key3] - an so on.
string Depth-data - basically a prefix for the icons. For calling this function from outside, let it stay blank.
Renvoie:
string HTML for the tree
Voir également:
SC_mod_tools_config_index::main()

t3lib_arrayBrowser::wrapValue ( theValue,
depth 
)

Wrapping the value in bold tags etc.

Paramètres:
string The title string
string Depth path
Renvoie:
string Title string, htmlspecialchars()'ed

t3lib_arrayBrowser::wrapArrayKey ( label,
depth,
theValue 
)

Wrapping the value in bold tags etc.

Paramètres:
string The title string
string Depth path
string The value for the array entry.
Renvoie:
string Title string, htmlspecialchars()'ed

t3lib_arrayBrowser::getSearchKeys ( keyArr,
depth_in,
searchString,
keyArray 
)

Creates an array with "depthKeys" which will expand the array to show the search results

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

t3lib_arrayBrowser::fixed_lgd ( string,
chars 
)

Fixed length function

Paramètres:
string String to process
integer Max number of chars
Renvoie:
string Processed string

t3lib_arrayBrowser::depthKeys ( arr,
settings 
)

Function modifying the depthKey array

Paramètres:
array Array with instructions to open/close nodes.
array Input depth_key array
Renvoie:
array Output depth_key array with entries added/removed based on $arr
Voir également:
SC_mod_tools_config_index::main()


Documentation des données membres

t3lib_arrayBrowser::$expAll = FALSE

t3lib_arrayBrowser::$dontLinkVar = FALSE

t3lib_arrayBrowser::$depthKeys = array()

t3lib_arrayBrowser::$searchKeys = array()

t3lib_arrayBrowser::$fixedLgd = 1

t3lib_arrayBrowser::$regexMode = 0

t3lib_arrayBrowser::$varName = ''


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:41:58 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3