\Horde_Core_Factory_Tree

A Horde_Injector:: based Horde_Tree:: factory.

Copyright 2010-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Summary

Methods
Properties
Constants
__construct()
create()
getSession()
setSession()
No public properties found
No constants found
_getDriverName()
$_injector
N/A
No private methods found
$_instances
N/A

Properties

$_injector

$_injector : \Horde_Injector

The injector.

Type

\Horde_Injector

$_instances

$_instances : array

Singleton instances.

Type

array

Methods

__construct()

__construct(\Horde_Injector  $injector) 

Constructor.

Parameters

\Horde_Injector $injector

The injector to use.

create()

create(string  $name, mixed  $renderer, array  $params = array()) : \Horde_Tree_Renderer_Base

Return the Horde_Tree:: instance.

Parameters

string $name

The name of this tree instance.

mixed $renderer

The type of tree renderer.

array $params

Any additional parameters the constructor needs. Defined by this class:

'nosession' - (boolean) Don't store tree state in the session.
              DEFAULT: false

Throws

\Horde_Tree_Exception

Returns

\Horde_Tree_Renderer_Base —

The singleton instance.

getSession()

getSession(  $instance,   $id,   $mask) 

Parameters

$instance
$id
$mask

setSession()

setSession(  $instance,   $id,   $val) 

Parameters

$instance
$id
$val

_getDriverName()

_getDriverName(string  $driver, string  $base) : string

Return the classname of the driver to load.

Parameters

string $driver

Driver name.

string $base

The base classname.

Throws

\Horde_Exception

Returns

string —

Classname.