Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JNode
+ Graphe d'héritage de JNode:

Fonctions membres publiques

 __construct ()
 
 addChild (&$child)
 
 setParent (&$parent)
 
getChildren ()
 
getParent ()
 
 hasChildren ()
 
 hasParent ()
 

Attributs protégés

 $_parent = null
 
 $_children = array()
 

Description détaillée

Tree Node Class.

Depuis
1.5
Obsolète:
3.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( )

Constructor

Depuis
1.5
Obsolète:
3.0

Documentation des fonctions membres

◆ addChild()

addChild ( $child)

Add child to this node

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

Paramètres
JNode&$childThe child to be added
Renvoie
void
Depuis
1.5
Obsolète:
3.0

◆ getChildren()

& getChildren ( )

Get the children of this node

Renvoie
JNode[] The children
Depuis
1.5
Obsolète:
3.0

◆ getParent()

& getParent ( )

Get the parent of this node

Renvoie
JNode|null JNode object with the parent or null for no parent
Depuis
1.5
Obsolète:
3.0

◆ hasChildren()

hasChildren ( )

Test if this node has children

Renvoie
boolean True if there are children
Depuis
1.5
Obsolète:
3.0

◆ hasParent()

hasParent ( )

Test if this node has a parent

Renvoie
boolean True if there is a parent
Depuis
1.6
Obsolète:
3.0

Références null.

◆ setParent()

setParent ( $parent)

Set the parent of a this node

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

Paramètres
JNode | null&$parentThe JNode for parent to be set or null
Renvoie
void
Depuis
1.5
Obsolète:
3.0

Références $hash, et null.

Documentation des champs

◆ $_children

$_children = array()
protected

◆ $_parent

$_parent = null
protected

La documentation de cette classe a été générée à partir du fichier suivant :