Class XoopsObjectTree
A tree structures with XoopsObject
s as nodes
Package: kernel\core
Copyright: (c) 2000-2003 The Xoops Project - www.xoops.org
Author: Kazumi Ono <onokazu@xoops.org>
Located at html/class/tree.php
Copyright: (c) 2000-2003 The Xoops Project - www.xoops.org
Author: Kazumi Ono <onokazu@xoops.org>
Located at html/class/tree.php
public
|
#
XoopsObjectTree( array & $objectArr, string $myId, string $parentId, string $rootId = null )
Constructor |
public
|
|
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
|
#
_makeSelBoxOptions( string $fieldName, string $selected, integer $key, string & $ret, string $prefix_orig, string $prefix_curr = '' )
Make options for a select box from |
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
|
$_parentId |
|
|
public
|
$_myId |
|
|
public
|
$_rootId | null |
|
public
array
|
$_tree | array() |
|
public
|
$_objects |
|