[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/Tree/ -> html.php (sommaire)

(pas de description)

Poids: 591 lignes (17 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Horde_Tree_html:: (10 méthodes):
  Horde_Tree_html()
  getTree()
  isSupported()
  renderNodeDefinitions()
  _buildHeader()
  _buildTree()
  _buildLine()
  _setLabel()
  _setNodeToggle()
  _setNodeIcon()


Classe: Horde_Tree_html  - X-Ref

The Horde_Tree_html:: class extends the Horde_Tree class to provide
HTML specific rendering functions.

Copyright 2003-2006 Marko Djukic <marko@oblo.com>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

$Horde: framework/Tree/Tree/html.php,v 1.51.2.12 2006/01/15 16:33:29 chuck Exp $

Horde_Tree_html($tree_name, $params)   X-Ref
Constructor


getTree($static = false)   X-Ref
Returns the tree.

param: boolean $static  If true the tree nodes can't be expanded and
return: string  The HTML code of the rendered tree.

isSupported()   X-Ref
Check the current environment to see if we can render the HTML
tree. HTML is always renderable, at least until we add a
php-gtk tree backend, in which case this implementation will
actually need a body.

return: boolean  Whether or not this Tree:: backend will function.

renderNodeDefinitions()   X-Ref
Returns just the JS node definitions as a string. This is a
no-op for the HTML renderer.


_buildHeader()   X-Ref
Returns the HTML code for a header row, if necessary.

return: string  The HTML code of the header row or an empty string.

_buildTree($node_id)   X-Ref
Recursive function to walk through the tree array and build the output.

param: string $node_id  The Node ID.
return: string  The tree rendering.

_buildLine($node_id)   X-Ref
Function to create a single line of the tree.

param: string $node_id  The Node ID.
return: string  The rendered line.

_setLabel($node_id)   X-Ref
Sets the label on the tree line.

param: string $node_id  The Node ID.
return: string  The label for the tree line.

_setNodeToggle($node_id)   X-Ref
Sets the node toggle on the tree line.

param: string $node_id  The Node ID.
return: string  The node toggle for the tree line.

_setNodeIcon($node_id)   X-Ref
Sets the icon for the node.

param: string $node_id  The Node ID.
return: string  The node icon for the tree line.



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7