PHP 클래스 Horde_Core_Tree_Renderer_Javascript, horde

Copyright 2003-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
저자: Marko Djukic ([email protected])
저자: Michael Slusarz ([email protected])
저자: Jan Schneider ([email protected])
상속: extends Horde_Core_Tree_Renderer_Html
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
__construct ( Horde_Tree $tree, array $params = [] ) Constructor.
fallback ( ) : string Provide a simpler renderer to fallback to.
getTree ( boolean $static = false ) : string Returns the tree.
isSupported ( ) : boolean Check the current environment to see if we can render the HTML tree.
renderNodeDefinitions ( ) : object Returns just the JS node definitions as a string.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Horde_Tree $tree, array $params = [] )
$tree Horde_Tree A tree object.
$params array Additional parameters. - jsvar: The JS variable name to store the tree object in. DEFAULT: Instance name.

fallback() 공개 메소드

Provide a simpler renderer to fallback to.
public fallback ( ) : string
리턴 string The next best renderer.

getTree() 공개 메소드

Returns the tree.
public getTree ( boolean $static = false ) : string
$static boolean If true the tree nodes can't be expanded and collapsed and the tree gets rendered expanded.
리턴 string The HTML code of the rendered tree.

isSupported() 공개 메소드

We check for DOM support in the browser.
public isSupported ( ) : boolean
리턴 boolean Whether or not this backend will function.

renderNodeDefinitions() 공개 메소드

Returns just the JS node definitions as a string.
public renderNodeDefinitions ( ) : object
리턴 object Object with the following properties: 'is_static', 'nodes', 'root_nodes'.