[ Index ] |
|
Code source de SPIP Agora 1.4 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 402 lignes (13 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
DB_NestedSet_TigraMenu:: (9 méthodes):
DB_NestedSet_TigraMenu()
_createFromStructure()
_openMenu()
_openSubMenu()
_closeMenu()
_closeSubMenu()
_addStyles()
_addGeometry()
printTree()
Classe: DB_NestedSet_TigraMenu - X-Ref
This class can be used to generate the data to build javascript popup menuDB_NestedSet_TigraMenu($params) X-Ref |
Constructor param: array $params A hash with parameters needed by the class return: bool |
_createFromStructure($params) X-Ref |
Creates the JavaScript array for TigraMenu Initially this method was introduced for the TreeMenu driver by Jason Rust o 'structure' => the result from $nestedSet->getAllNodes(true) o 'textField' => the field in the table that has the text for node o 'linkField' => the field in the table that has the link for the node return: string The TigraMenu JavaScript array |
_openMenu($menu_id=1) X-Ref |
Returns the string which opens the JavaScript menu param: int $menu_id ID of the menu needed to use more than one menu on a page return: string The JavaScript piece |
_openSubMenu($tag) X-Ref |
Returns the string which opens a submenu within the JavaScript menu param: array $tag Contains the content of the current item (name, link) return: string The JavaScript piece |
_closeMenu() X-Ref |
Closes the JavaScript array return: string The JavaScript piece |
_closeSubMenu() X-Ref |
Closes the JavaScript array of a submenu return: string The JavaScript piece |
_addStyles($menu_id, $rootStyles, $childStyles = false) X-Ref |
Creates the JavaScript code which sets the styles for each level param: int $menu_id ID of the menu needed to use more than one menu on a page param: array $rootStyles Array of style attributes for the top items param: array $childStyles Array of style attributes for the sub items return: string The JavaScript piece |
_addGeometry($menu_id, $rootGeometry, $childGeometry = false) X-Ref |
Creates the JavaScript code which sets the position and geometry of the menu param: int $menu_id ID of the menu needed to use more than one menu on a page param: array $rootGeometry Array of geometry attributes for the top items param: array $childGeometry Array of geometry attributes for the sub items return: string The JavaScript piece |
printTree() X-Ref |
Print's the current tree using the output driver |
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |