Horde_Tree_Renderer
in package
The Horde_Tree_Renderer class contains constants and a factory for the tree renderers.
Tags
Table of Contents
- EXTRA_LEFT = 0
- EXTRA_RIGHT = 1
- factory() : Horde_Tree
- Attempts to return a concrete instance.
Constants
EXTRA_LEFT
public
mixed
EXTRA_LEFT
= 0
EXTRA_RIGHT
public
mixed
EXTRA_RIGHT
= 1
Methods
factory()
Attempts to return a concrete instance.
public
static factory(string $renderer[, array<string|int, mixed> $params = array() ]) : Horde_Tree
Parameters
- $renderer : string
-
Either the tree renderer driver or a full class name to use.
- $params : array<string|int, mixed> = array()
-
Any additional parameters the constructor needs. Either 'name' or 'tree' must be specified. Common parameters are:
- name: (string) The name of this tree instance.
- tree: (Horde_Tree) An existing tree object.
- session: (array) Callbacks used to store session data. Must define two keys: 'get' and 'set'. Function definitions: (string) = get([string - Instance], [string - ID]); set([string - Instance], [string - ID], [boolean - value]); DEFAULT: No session storage
Tags
Return values
Horde_Tree —The newly created concrete instance.