PHP Class Pop\Dom\AbstractDom

Author: Nick Sagona, III ([email protected])
Exibir arquivo Open project: nicksagona/PopPHP

Protected Properties

Property Type Description
$childNodes array Object child nodes
$indent string Indentation for formatting purposes.
$output string Child output

Public Methods

Method Description
addChild ( mixed $c ) : mixed Add a child to the object.
addChildren ( array $c ) : mixed Add children to the object.
getChild ( integer $i ) : Child Get the child nodes of the object.
getChildren ( ) : array Get the child nodes of the object.
getIndent ( ) : void Method to return the indent.
hasChildren ( ) : boolean Get whether or not the child object has children
removeChild ( integer $i ) : void Remove all child nodes from the object.
removeChildren ( ) : void Remove all child nodes from the object.
setIndent ( string $indent ) : mixed Method to set the indent.

Method Details

addChild() public method

Add a child to the object.
public addChild ( mixed $c ) : mixed
$c mixed
return mixed

addChildren() public method

Add children to the object.
public addChildren ( array $c ) : mixed
$c array
return mixed

getChild() public method

Get the child nodes of the object.
public getChild ( integer $i ) : Child
$i integer
return Child

getChildren() public method

Get the child nodes of the object.
public getChildren ( ) : array
return array

getIndent() public method

Method to return the indent.
public getIndent ( ) : void
return void

hasChildren() public method

Get whether or not the child object has children
public hasChildren ( ) : boolean
return boolean

removeChild() public method

Remove all child nodes from the object.
public removeChild ( integer $i ) : void
$i integer
return void

removeChildren() public method

Remove all child nodes from the object.
public removeChildren ( ) : void
return void

setIndent() public method

Method to set the indent.
public setIndent ( string $indent ) : mixed
$indent string
return mixed

Property Details

$childNodes protected_oe property

Object child nodes
protected array $childNodes
return array

$indent protected_oe property

Indentation for formatting purposes.
protected string $indent
return string

$output protected_oe property

Child output
protected string $output
return string