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.
Показать файл
Открыть проект
Открытые методы
Описание методов
__construct()
публичный Метод
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.
getTree()
публичный Метод
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.
renderNodeDefinitions()
публичный Метод
Returns just the JS node definitions as a string.