include/ytree/Tree.php

Show: inherited
Table of Contents

\Tree

Package:
Children
\KBTree

Properties

Propertypublic  $_debug_div_name= ''debug_tree''
Default value'debug_tree'Details
Type
n/a
Propertypublic  $_debug_window= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $_header_files= 'array( 'include/javascript/yui/build/treeview/treeview.js', 'include/ytree/treeutil.js', )'
Default valuearray( 'include/javascript/yui/build/treeview/treeview.js', 'include/ytree/treeutil.js', )Details
Type
n/a
Propertypublic  $_name= ''
Details
Type
n/a
Propertypublic  $_nodes= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $_params= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $json= ''
Details
Type
n/a
Propertypublic  $tree_style= ''include/ytree/TreeView/css/folders/tree.css''
Default value'include/ytree/TreeView/css/folders/tree.css'Details
Type
n/a

Methods

methodpublicTree(  $name ) : void

Parameters
Name Type Description
$name
methodpublicadd_node(  $node ) : void

Parameters
Name Type Description
$node
methodpublicgenerateNodesNoInit( bool $insertScriptTags = true, string $customInitFunction = "" ) : string

Generates the javascript node arrays without calling treeinit(). Also generates a callback function that can be easily called to instatiate the treeview object onload().

IE6/7 will throw an "Operation Aborted" error when calling certain types of scripts before the page is fully loaded. The workaround is to move the init() call to the onload handler. See: http://www.viavirtualearth. com/wiki/DeferScript.ashx

Parameters
Name Type Description
$insertScriptTags bool

insertScriptTags Flag to add