Class XoopsObjectTree
A tree structures with XoopsObject
s as nodes
Package: kernel\core
Copyright: (c) 2000-2016 XOOPS Project (www.xoops.org)
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Kazumi Ono onokazu@xoops.org
Located at lass/tree.php
Copyright: (c) 2000-2016 XOOPS Project (www.xoops.org)
License: GPL 2 (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 |
protected
|
|
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 |
protected
|
#
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, string $extra = '' )
Make a select box with options from the tree |
public
|
#
makeSelectElement( string $name, string $fieldName, string $prefix = '-', string $selected = '', boolean $addEmptyOption = false, integer $key = 0, string $extra = '', string $caption = '' )
Make a select box with options from the tree |
protected
|
#
addSelectOptions(
Make options for a select box from |
public
mixed
|
protected
|
$parentId
|
|
protected
|
$myId
|
|
protected
|
$rootId
|
|
protected
array
|
$tree
|
#
array()
|
protected
|
$objects
|