Class JNode

Description

Tree Node Class.

  • deprecated: 12.3
  • since: 11.1

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

JObject
   |
   --JNode
Direct descendents
Class Description
JMenuNode
Variable Summary
array $_children
object $_parent
Method Summary
JNode __construct ()
void addChild (JNode &$child)
array &getChildren ()
mixed &getParent ()
boolean hasChildren ()
boolean hasParent ()
void setParent (mixed &$parent)
Variables
array $_children = array() (line 37)

Array of Children

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

Parent node

  • since: 11.1
  • access: protected

Inherited Variables

Inherited from JObject

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

Constructor

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

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

Redefined in descendants as:
addChild (line 62)

Add child to this node

If the child already has a parent, the link is unset

  • since: 11.1
  • access: public
void addChild (JNode &$child)
  • JNode &$child: The child to be added
getChildren (line 109)

Get the children of this node

  • return: The children
  • since: 11.1
  • access: public
array &getChildren ()
getParent (line 123)

Get the parent of this node

  • return: JNode object with the parent or null for no parent
  • since: 11.1
  • access: public
mixed &getParent ()
hasChildren (line 137)

Test if this node has children

  • return: True if there are children
  • since: 11.1
  • access: public
boolean hasChildren ()
hasParent (line 151)

Test if this node has a parent

  • return: True if there is a parent
  • since: 11.1
  • access: public
boolean hasParent ()
setParent (line 83)

Set the parent of a this node

If the node already has a parent, the link is unset

  • since: 11.1
  • access: public
void setParent (mixed &$parent)
  • mixed &$parent: The JNode for parent to be set or null

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()

Documentation generated on Mon, 25 Jun 2012 13:58:11 -0500 by phpDocumentor 1.4.4