\Pop\DomAbstractNode

Abstract node class

Summary

Methods
Properties
Constants
getIndent()
setIndent()
addChild()
addChildren()
hasChildren()
getChild()
getChildren()
removeChild()
removeChildren()
No public properties found
No constants found
No protected methods found
$childNodes
$indent
$output
N/A
No private methods found
No private properties found
N/A

Properties

$childNodes

$childNodes : array

Object child nodes

Type

array

$indent

$indent : string

Indentation for formatting purposes.

Type

string

$output

$output : string

Child output

Type

string

Methods

getIndent()

getIndent() : string

Return the indent.

Returns

string

setIndent()

setIndent(string  $indent) : mixed

Set the indent.

Parameters

string $indent

Returns

mixed

addChild()

addChild(mixed  $c) : mixed

Add a child to the object.

Parameters

mixed $c

Throws

\InvalidArgumentException

Returns

mixed

addChildren()

addChildren(array  $c) : mixed

Add children to the object.

Parameters

array $c

Throws

\Pop\Dom\Exception

Returns

mixed

hasChildren()

hasChildren() : boolean

Get whether or not the child object has children

Returns

boolean

getChild()

getChild(integer  $i) : \Pop\Dom\Child

Get the child nodes of the object.

Parameters

integer $i

Returns

\Pop\Dom\Child

getChildren()

getChildren() : array

Get the child nodes of the object.

Returns

array

removeChild()

removeChild(integer  $i) : void

Remove all child nodes from the object.

Parameters

integer $i

removeChildren()

removeChildren() : void

Remove all child nodes from the object.