Class JNode

Description

Tree Node Class.

  • deprecated: 12.3 (Platform) & 4.0 (CMS)
  • since: 11.1

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

JObject
   |
   --JNode
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.
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()

Documentation generated on Tue, 19 Nov 2013 15:09:33 +0100 by phpDocumentor 1.4.3