JNode

Extends \JObject

Tree Node Class.

deprecated
since

1.5

deprecated

3.0

package

Joomla.Legacy

Methods

__construct

Constructor

__construct() 
deprecated
since

1.5

deprecated

3.0

addChild

Add child to this node

addChild( &$child) : void
deprecated

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

since

1.5

deprecated

3.0

Arguments

$child

getChildren

Get the children of this node

getChildren() : array<mixed,\JNode>
deprecated
since

1.5

deprecated

3.0

Response

array<mixed,\JNode>The children

getParent

Get the parent of this node

getParent() : \JNode|null
deprecated
since

1.5

deprecated

3.0

Response

\JNode|nullJNode object with the parent or null for no parent

hasChildren

Test if this node has children

hasChildren() : boolean
deprecated
since

1.5

deprecated

3.0

Response

booleanTrue if there are children

hasParent

Test if this node has a parent

hasParent() : boolean
deprecated
since

1.6

deprecated

3.0

Response

booleanTrue if there is a parent

setParent

Set the parent of a this node

setParent( &$parent) : void
deprecated

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

since

1.5

deprecated

3.0

Arguments

$parent

Properties

_parent

Parent node

deprecated
since

1.5

deprecated

3.0

Type(s)

\JNode

_children

Array of Children

deprecated
since

1.5

deprecated

3.0

Type(s)

array<mixed,\JNode>