\Horde_Tree_Renderer

The Horde_Tree_Renderer class contains constants and a factory for the tree renderers.

Summary

Methods
Properties
Constants
factory()
No public properties found
EXTRA_LEFT
EXTRA_RIGHT
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

EXTRA_LEFT

EXTRA_LEFT

EXTRA_RIGHT

EXTRA_RIGHT

Methods

factory()

factory(string  $renderer, array  $params = array()) : \Horde_Tree

Attempts to return a concrete instance.

Parameters

string $renderer

Either the tree renderer driver or a full class name to use.

array $params

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

Throws

\Horde_Tree_Exception

Returns

\Horde_Tree

The newly created concrete instance.