PHP Trait FluentDOM\Node\ParentNode\Implementation

Datei anzeigen Open project: fluentdom/fluentdom

Public Methods

Method Description
append ( mixed $nodes ) Append nodes as children to the node itself
appendChild ( DOMNode $newChild )
getFirstElementChild ( ) : Element | null Returns the first element child node
getLastElementChild ( ) : Element | null Returns the last element child node
insertBefore ( DOMNode $newChild, DOMNode $refChild = NULL )
prepend ( mixed $nodes ) Insert nodes before the first child node

Method Details

append() public method

Append nodes as children to the node itself
public append ( mixed $nodes )
$nodes mixed

appendChild() abstract public method

abstract public appendChild ( DOMNode $newChild )
$newChild DOMNode

getFirstElementChild() public method

Returns the first element child node
public getFirstElementChild ( ) : Element | null
return FluentDOM\Element | null

getLastElementChild() public method

Returns the last element child node
public getLastElementChild ( ) : Element | null
return FluentDOM\Element | null

insertBefore() abstract public method

abstract public insertBefore ( DOMNode $newChild, DOMNode $refChild = NULL )
$newChild DOMNode
$refChild DOMNode

prepend() public method

Insert nodes before the first child node
public prepend ( mixed $nodes )
$nodes mixed