Property | Type | Description | |
---|---|---|---|
$_colsLeft | integer | Keep count of how many extra columns there are on the left side of the node. | |
$_colsRight | integer | Keep count of how many extra columns there are on the right side of the node. | |
$_extra | array | An array containing extra columns for the tree nodes. | |
$_header | array | Hash with header information. | |
$_nodes | array | An array containing all the tree nodes. | |
$_options | array | Option values. | |
$_sortCriteria | string | Stores the sorting criteria temporarily. | |
$_static | boolean | Should the tree be rendered statically? | |
$_tree | Horde_Tree | The tree object. |
Method | Description | |
---|---|---|
__construct ( Horde_Tree $tree, array $params = [] ) | Constructor. | |
addNode ( array $node ) | Adds a node to the node tree array. | |
addNodeExtra ( mixed $id, integer $side, array $extra ) | Adds extra columns to be displayed to the side of the node. | |
addNodeParams ( string $id, array $params = [] ) | Adds additional parameters to a node. | |
fallback ( ) : string | Provide a simpler renderer to fallback to. | |
getOption ( string $option ) : mixed | Gets an option's value. | |
getTree ( boolean $static = false ) : string | Returns the tree. | |
isSupported ( ) : boolean | Check the current environment to see if we can render the tree. | |
renderTree ( boolean $static = false ) | Renders the tree. | |
setHeader ( array $header ) | Adds column headers to the tree table. | |
setOption ( $options, mixed $value = null ) | Sets an option. | |
sort ( string $criteria ) | Sorts the tree by the specified node property. |
Method | Description | |
---|---|---|
_buildTree ( $id ) : string | Recursive function to walk through the tree array and build the output. |
public __construct ( Horde_Tree $tree, array $params = [] ) | ||
$tree | Horde_Tree | A tree object. |
$params | array | Additional parameters. |
protected _buildTree ( $id ) : string | ||
return | string | The tree rendering. |
public addNode ( array $node ) | ||
$node | array | A hash with node properties: - id: (string) The unique node id. - parent: (string) The parent's unique node id. - label: (string) The text label for the node. - expanded: (boolean) Is this level expanded or not. - params: (array) Any other parameters to set (see addNodeParams() of the renderers for full details). |
public addNodeParams ( string $id, array $params = [] ) | ||
$id | string | The unique node id. |
$params | array | Parameters to set (key/value pairs). |
public isSupported ( ) : boolean | ||
return | boolean | Whether or not this backend will function. |
public renderTree ( boolean $static = false ) | ||
$static | boolean | If true the tree nodes can't be expanded and collapsed and the tree gets rendered expanded. |
protected int $_colsLeft | ||
return | integer |
protected int $_colsRight | ||
return | integer |
protected array $_extra | ||
return | array |
protected array $_nodes | ||
return | array |
protected string $_sortCriteria | ||
return | string |
protected bool $_static | ||
return | boolean |