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 |
리턴 |
Horde_Tree |
The newly created concrete instance. |