Class XoopsObjectTree
A tree structures with XoopsObject
s as nodes
Package: kernel\core
Copyright: XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Kazumi Ono onokazu@xoops.org
Located at lass/tree.php
Copyright: XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Kazumi Ono onokazu@xoops.org
Located at lass/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 = '-', boolean $selected = '', integer $addEmptyOption = false, string $key = 0, string $extra = '' )
Make a select box with options from the tree |
public
array
|
#
makeArrayTree( string $fieldName, string $prefix = '-', integer $key = 0 )
Make options for a array |
public
|
#
_makeArrayTreeOptions( string $fieldName, integer $key, string & $ret, string $prefix_orig, $prefix_curr = '' )
Make a array with options from the tree |