Joomla! Platform 11.4

 Class JTree

Description

Tree Class.

  • since: 11.1

Located in /libraries/joomla/base/tree.php (line 21)

Class JObject

Class JTree   (Subpackage Base)
Variable Summary
Variable object $_current
Variable object $_root
Method Summary
Constructor JTree __construct ()
Method mixed addChild (array &$node, [boolean $setCurrent = false])
Method void getParent ()
Method void reset ()
Variables
object $_current = null (line 37)

Current working node

  • since: 11.1
  • access: protected
object $_root = null (line 29)

Root node

  • since: 11.1
  • access: protected

Inherited Variables

Inherited from JObject

Variable JObject::$_errors
Methods
Constructor __construct (line 44)

Constructor

  • since: 11.1
  • access: public
JTree __construct ()

Redefinition of:
JObject::__construct()
Class constructor, overridden in descendant classes.
addChild (line 60)

Method to add a child

  • since: 11.1
  • access: public
mixed addChild (array &$node, [boolean $setCurrent = false])
  • array &$node: The node to process
  • boolean $setCurrent: True to set as current working node
getParent (line 76)

Method to get the parent

  • since: 11.1
  • access: public
void getParent ()
reset (line 88)

Method to get the parent

  • since: 11.1
  • access: public
void reset ()

Inherited Methods

Inherited From JObject

 JObject::__construct()
 JObject::def()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::toString()
 JObject::__toString()
/html>