Class TfishAngryTree
Represents hierarchical relationships between collections and member content objects.
Essentially this is a category tree, although collections (category analogues) are fully-fledged content objects in their own right. Pass in an array of collection objects; you can choose to pass in all collection objects or you can pass in a branch, in which case the tree will just consist of descendants of the root node.
As for the name, don't ask.
Package: core
Copyright: http://smartfactory.ca The SmartFactory
License: GNU General Public License (GPL)
Author: Kazumi Ono onokazu@xoops.org
Author: marcan aka Marc-André Lanciault marcan@smartfactory.ca
Author: Madfish simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Located at trust_path/libraries/tuskfish/class/TfishAngryTree.php
Copyright: http://smartfactory.ca The SmartFactory
License: GNU General Public License (GPL)
Author: Kazumi Ono onokazu@xoops.org
Author: marcan aka Marc-André Lanciault marcan@smartfactory.ca
Author: Madfish simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Located at trust_path/libraries/tuskfish/class/TfishAngryTree.php
Methods summary
public
|
#
__construct( array & $objectArr, string $myId, string $parentId, string $rootId = null )
Constructor |
public
array
&
|
|
public
object
&
|
|
public
array
|
#
getFirstChild( integer $key )
Returns an array of all the first child objects of a parental object specified by its id. |
public
array
|
#
getAllChild( integer $key, array $ret = array() )
Returns an array of all child objects of a parental object specified by its ID. |
public
array
|
#
getAllParent( integer $key, array $ret = array(), integer $uplevel = 1 )
Returns an array of all parent objects. |
public
array
|
#
makeSelBox( string $name, string $fieldName, string $prefix = '-- ', integer $selected = 0, boolean $addEmptyOption = false, integer $key = 0 )
Make select box options from the tree |
public
string
|
#
makeParentSelectBox( integer $selected = 0, integer $key = 0 )
Make a select box of parent collections from the tree. |