PHP Class Horde_Tree_Renderer, horde

Author: Jan Schneider ([email protected])
Datei anzeigen Open project: horde/horde Class Usage Examples

Public Methods

Method Description
factory ( string $renderer, array $params = [] ) : Horde_Tree Attempts to return a concrete instance.

Method Details

factory() public static method

Attempts to return a concrete instance.
public static factory ( string $renderer, array $params = [] ) : Horde_Tree
$renderer string Either the tree renderer driver or a full class name to use.
$params 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
return Horde_Tree The newly created concrete instance.