[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Tree/ -> ImmutableNodeTrait.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: 155 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  getChildren()
  getParent()
  getRoot()
  hasChildren()
  hasParent()
  getSibling()

Functions
Functions that are not part of a class:

getChildren($recursive = false)   X-Ref
Get the children of this node

param: boolean  $recursive  False by default
return: NodeInterface[]  The children

getParent()   X-Ref
Get the parent of this node

return: NodeInterface|null

getRoot()   X-Ref
Get the root of the tree

return: ImmutableNodeInterface

hasChildren()   X-Ref
Test if this node has children

return: boolean  True if there is a child

hasParent()   X-Ref
Test if this node has a parent

return: boolean  True if there is a parent

getSibling($right = true)   X-Ref
Returns the right or left sibling of a node

param: boolean  $right  If set to false, returns the left sibling
return: NodeInterface|null  NodeInterface object of the sibling.



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