PHP 클래스 Horde_Tree_Renderer, horde

저자: Jan Schneider ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
factory ( string $renderer, array $params = [] ) : Horde_Tree Attempts to return a concrete instance.

메소드 상세

factory() 공개 정적인 메소드

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