Class Horde_Tree_select

Description

The Horde_Tree_select:: class extends the Horde_Tree class to provide <option> tag rendering.

Copyright 2005-2009 The Horde Project (http://www.horde.org/)

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/select.php,v 1.2.2.11 2009/01/06 15:23:44 jan Exp $

Located in /Tree/Tree/select.php (line 17)

Horde_Tree
   |
   --Horde_Tree_select
Variable Summary
 array $_nodes
Method Summary
 static boolean isSupported ()
 Horde_Tree_select Horde_Tree_select ( $tree_name,  $params)
 void addNodeParams (string $id, [array $params = array()])
 string getTree ()
Variables
Methods
static isSupported (line 60)

Checks 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: Whether or not this Tree:: backend will function.
static boolean isSupported ()
Constructor Horde_Tree_select (line 29)

Constructor.

Horde_Tree_select Horde_Tree_select ( $tree_name,  $params)
  • $tree_name
  • $params
addNodeParams (line 82)

Adds additional parameters to a node.

void addNodeParams (string $id, [array $params = array()])
  • string $id: The unique node id.
  • array $params: Any other parameters to set.
     selected --  Whether this node is selected

Redefinition of:
Horde_Tree::addNodeParams()
Adds additional parameters to a node.
getTree (line 40)

Returns the tree.

  • return: The HTML code of the rendered tree.
string getTree ()
renderNodeDefinitions (line 69)

Returns just the JS node definitions as a string. This is a no-op for the select renderer.

void renderNodeDefinitions ()

Inherited Methods

Inherited From Horde_Tree

 Horde_Tree::Horde_Tree()
 Horde_Tree::addNode()
 Horde_Tree::addNodeExtra()
 Horde_Tree::addNodeParams()
 Horde_Tree::factory()
 Horde_Tree::fallback()
 Horde_Tree::getOption()
 Horde_Tree::isExpanded()
 Horde_Tree::renderTree()
 Horde_Tree::setHeader()
 Horde_Tree::setOption()
 Horde_Tree::singleton()
 Horde_Tree::sort()
 Horde_Tree::_buildIndents()

Documentation generated on Sun, 30 Jan 2011 05:21:09 +0000 by phpDocumentor 1.4.3