CompositeTreeItem extends TreeItem
AbstractYes
Class CompositeTreeItem
Table of Contents
Methods
- __construct() : mixed
- TreeItem constructor.
- add() : mixed
- findChild() : $this|TreeItem|null
- getDescendants() : array<string|int, mixed>
- getDescendantsCount() : int
- getNodeId() : mixed
- getParent() : mixed
- isComposite() : bool
- remove() : mixed
- setNodeId() : mixed
- setParent() : mixed
Methods
__construct()
TreeItem constructor.
public
__construct(mixed $nodeId) : mixed
Parameters
- $nodeId : mixed
add()
public
add(TreeItem $item) : mixed
Parameters
- $item : TreeItem
findChild()
public
findChild(mixed $nodeId) : $this|TreeItem|null
Parameters
- $nodeId : mixed
Return values
$this|TreeItem|nullgetDescendants()
public
getDescendants() : array<string|int, mixed>
Return values
array<string|int, mixed>getDescendantsCount()
public
getDescendantsCount() : int
Return values
intgetNodeId()
public
getNodeId() : mixed
getParent()
public
getParent() : mixed
isComposite()
public
isComposite() : bool
Return values
boolremove()
public
remove(TreeItem $item) : mixed
Parameters
- $item : TreeItem
setNodeId()
public
setNodeId(mixed $nodeId) : mixed
Parameters
- $nodeId : mixed
setParent()
public
setParent(TreeItem $parent) : mixed
Parameters
- $parent : TreeItem