The Horde_Tree:: class provides a tree view of hierarchical information. It allows for expanding/collapsing of branches and maintains their state. It can work together with the Horde_Tree javascript class to achieve this in DHTML on supported browsers.
Copyright 2003-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.php,v 1.46.6.18 2009/01/06 15:23:44 jan Exp $
Located in /Tree/Tree.php (line 36)
Class | Description |
---|---|
![]() |
The Horde_Tree_html:: class extends the Horde_Tree class to provide HTML specific rendering functions. |
![]() |
The Horde_Tree_javascript:: class extends the Horde_Tree class to provide javascript specific rendering functions. |
![]() |
The Horde_Tree_select:: class extends the Horde_Tree class to provide <option> tag rendering. |
Keep count of how many extra columns there are on the left side of the node.
Keep count of how many extra columns there are on the right side of the node.
Hash with header information.
The name of this instance.
An array containing all the tree nodes.
Option values.
The top-level nodes in the tree.
Stores the sorting criteria temporarily.
Should the tree be rendered statically?
Use session to store cached Tree data?
Attempts to return a concrete Horde_Tree instance.
Attempts to return a reference to a concrete Horde_Tree instance based on $name and $renderer. It will only create a new instance if no Horde_Tree instance with the same parameters currently exists.
This method must be invoked as: $var = &Horde_Tree::singleton($name[, $renderer]);
Constructor.
'nosession' -- (boolean) If true, do not store tree data in session.
Adds a node to the node tree array.
Adds extra columns to be displayed to the side of the node.
Adds additional parameters to a node.
class -- CSS class to use with this node icon -- Icon to display next node iconalt -- Alt text to use for the icon icondir -- Icon directory iconopen -- Icon to indicate this node as expanded onclick -- Onclick event attached to this node url -- URL to link the node to urlclass -- CSS class for the node's URL title -- Link tooltip title target -- Target for the 'url' link
Try to fall back to a simpler renderer.
Gets an option's value.
Returns whether the specified node is currently expanded.
Renders the tree.
Adds column headers to the tree table.
html -- The HTML content of the header cell width -- The width of the header cell align -- The alignment inside the header cell class -- The CSS class of the header cell
Sets an option.
Available options:
alternate -- Alternate shading in the table? (boolean) hideHeaders -- Don't render any HTML for the header row, just use the widths. class -- The class to use for the table. (string) lines -- Show tree lines? (boolean) multiline -- Do the node labels contain linebreaks? (boolean)
Sorts the tree by the specified node property.
Set the indent level for each node in the tree.
Documentation generated on Sun, 30 Jan 2011 05:22:57 +0000 by phpDocumentor 1.4.3