Class icms_ipf_Tree
A tree structures with objects as nodes
Package: Ipf\Tree
Category: ICMS
Copyright: (c) 2000-2003 The Xoops Project - www.xoops.org
License: GNU General Public License (GPL)
Author: Kazumi Ono onokazu@xoops.org
Located at ipf/Tree.php
Category: ICMS
Copyright: (c) 2000-2003 The Xoops Project - www.xoops.org
License: GNU General Public License (GPL)
Author: Kazumi Ono onokazu@xoops.org
Located at ipf/Tree.php
public
|
#
__construct( array & $objectArr, string $myId, string $parentId, string $rootId = null )
Constructor |
public
array
&
|
|
public
object
&
|
|
public
array
|
#
getFirstChild( string $key )
returns an array of all the first child object of an object specified by its id |
public
array
|
#
getAllChild( string $key, array $ret = array () )
returns an array of all child objects of an object specified by its id |
public
array
|
#
getAllParent( string $key, array $ret = array (), integer $uplevel = 1 )
returns an array of all parent objects. the key of returned array represents how many levels up from the specified object |
public
string
|
#
makeSelBox( string $name, string $fieldName, string $prefix = '-', string $selected = '', boolean $addEmptyOption = false, integer $key = 0 )
Make a select box with options from the tree |
public
|
$_myId
|
|
public
array
|
$_tree
|
#
array ()
|