AbstractNode
in package
Abstract node class
Tags
Table of Contents
- $childNodes : array<string|int, mixed>
- Object child nodes
- $indent : string
- Indentation for formatting purposes
- $output : string
- Child output
- $parent : AbstractNode
- Parent node
- addChild() : mixed
- Add a child to the object
- addChildren() : mixed
- Add children to the object
- getChild() : Child
- Get the child nodes of the object
- getChildNodes() : array<string|int, mixed>
- Get the child nodes of the object (alias)
- getChildren() : array<string|int, mixed>
- Get the child nodes of the object
- getIndent() : string
- Return the indent
- getParent() : AbstractNode
- Return the parent node
- hasChildNodes() : bool
- Get whether or not the child object has children (alias)
- hasChildren() : bool
- Get whether or not the child object has children
- removeChild() : void
- Remove all child nodes from the object
- removeChildren() : void
- Remove all child nodes from the object
- setIndent() : mixed
- Set the indent
- setParent() : AbstractNode
- Set the parent node
Properties
$childNodes
Object child nodes
protected
array<string|int, mixed>
$childNodes
= []
$indent
Indentation for formatting purposes
protected
string
$indent
= null
$output
Child output
protected
string
$output
= null
$parent
Parent node
protected
AbstractNode
$parent
= null
Methods
addChild()
Add a child to the object
public
addChild(mixed $c) : mixed
Parameters
- $c : mixed
Tags
Return values
mixed —addChildren()
Add children to the object
public
addChildren( $children) : mixed
Parameters
Tags
Return values
mixed —getChild()
Get the child nodes of the object
public
getChild(int $i) : Child
Parameters
- $i : int
Return values
Child —getChildNodes()
Get the child nodes of the object (alias)
public
getChildNodes() : array<string|int, mixed>
Return values
array<string|int, mixed> —getChildren()
Get the child nodes of the object
public
getChildren() : array<string|int, mixed>
Return values
array<string|int, mixed> —getIndent()
Return the indent
public
getIndent() : string
Return values
string —getParent()
Return the parent node
public
getParent() : AbstractNode
Return values
AbstractNode —hasChildNodes()
Get whether or not the child object has children (alias)
public
hasChildNodes() : bool
Return values
bool —hasChildren()
Get whether or not the child object has children
public
hasChildren() : bool
Return values
bool —removeChild()
Remove all child nodes from the object
public
removeChild(int $i) : void
Parameters
- $i : int
Return values
void —removeChildren()
Remove all child nodes from the object
public
removeChildren() : void
Return values
void —setIndent()
Set the indent
public
setIndent(string $indent) : mixed
Parameters
- $indent : string
Return values
mixed —setParent()
Set the parent node
public
setParent(AbstractNode $parent) : AbstractNode
Parameters
- $parent : AbstractNode