[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Tree/ -> NodeTrait.php (summary)

Joomla! Content Management System

Copyright: (C) 2019 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 103 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  setParent()
  addChild()
  removeChild()
  setSibling()

Functions
Functions that are not part of a class:

setParent(NodeInterface $parent)   X-Ref
Set the parent of this node

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

param: NodeInterface|null  $parent  NodeInterface for the parent to be set or null
return: void

addChild(NodeInterface $child)   X-Ref
Add child to this node

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

param: NodeInterface  $child  The child to be added.
return: void

removeChild(NodeInterface $child)   X-Ref
Remove a specific child

param: NodeInterface  $child  Child to remove
return: void

setSibling(NodeInterface $sibling, $right = true)   X-Ref
Function to set the left or right sibling of a node

param: NodeInterface  $sibling  NodeInterface object for the sibling
param: boolean        $right    If set to false, the sibling is the left one
return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer