Class cTreeItem
Tree item class
Direct known subclasses
cTreeIndirect known subclasses
cGuiTreeCopyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Bjoern Behrens
Located at classes/tree/class.ctreeitem.php
public
|
|
public
string
|
|
public
string
|
|
public
boolean
|
|
public
|
#
importTable( array $flat_array )
Imports a table from an array of arrays. Array format: array( array("id" => "Item ID", "name" => "Item name", "level" => 1, "collapsed" => true|false, "attributes" => array("attr_name" => "attr_value")) ); |
public
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public
deleted
|
|
public
|
#
getItemByID( string $id )
Retrieves a specific item by its ID. Note that this function traverses all subitems to find the correct item. |
public
|
#
setAttribute( string $attributeName, array $attributeValue )
sets a custom attribute for this TreeItem |
public
|
|
public
mixed
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
#
getCollapsedList( array & $list )
getCollapsedList Returns all items (as ID array) which are collapsed. |
public
|
#
getExpandedList( array & $list )
getExpandedList Returns all items (as ID array) which are expanded. |
public
|
|
public
object
|
|
public
|
|
public
|
#
flatTraverse( object $level = 0 )
flatTraverse traverses the tree starting from this item, and returning all objects as $objects in a flat array. |
public
none
|
public
array
|
$_subitems | array() |
#
Sub Items for this tree item |
public
boolean
|
$_collapsed |
|
#
Determinates if this tree item is collapsed |
public
string
|
$_id |
|
#
ID for this item |
public
string
|
$_name |
|
#
Name for this item |
public
integer
|
$_level |
|
#
Contains the level of this item |
public
array
|
$_attributes | array() |
#
Contains custom entries |
public
array
|
$_parent | false |
#
Contains the parent of this item |
public
array
|
$_next | false |
#
Contains the next item |
public
array
|
$_previous | false |
#
Contains the previous item |