Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
setParent (NodeInterface $parent) | |
addChild (NodeInterface $child) | |
removeChild (NodeInterface $child) | |
setSibling (NodeInterface $sibling, $right=true) | |
Fonctions membres publiques hérités de ImmutableNodeInterface | |
& | getChildren ($recursive=false) |
getParent () | |
getRoot () | |
hasChildren () | |
hasParent () | |
getSibling ($right=true) | |
Interface for a node class
addChild | ( | NodeInterface | $child | ) |
Add child to this node
If the child already has a parent, the link is unset
NodeInterface | $child | The child to be added. |
removeChild | ( | NodeInterface | $child | ) |
setParent | ( | NodeInterface | $parent | ) |
Set the parent of this node
If the node already has a parent, the link is unset
NodeInterface | null | $parent | NodeInterface for the parent to be set or null |
Implémenté dans CategoryNode.
Référencé par Joomla\CMS\Tree\addChild().
setSibling | ( | NodeInterface | $sibling, |
$right = true |
|||
) |
Function to set the left or right sibling of a node
NodeInterface | $sibling | NodeInterface object for the sibling |
boolean | $right | If set to false, the sibling is the left one |