PHP Trait FluentDOM\Node\ChildNode\Implementation

ファイルを表示 Open project: fluentdom/fluentdom

Public Methods

Method Description
after ( DOMNode | DOMNodeList $nodes ) Insert nodes after a node.
before ( DOMNode | DOMNodeList $nodes ) Insert nodes before a node.
remove ( ) Removes a node from its parent, returns the node
replace ( DOMNode | DOMNodeList $nodes ) Replace a node with on or more other nodes, returns the replaced node.

Method Details

after() public method

Insert nodes after a node.
public after ( DOMNode | DOMNodeList $nodes )
$nodes DOMNode | DOMNodeList

before() public method

Insert nodes before a node.
public before ( DOMNode | DOMNodeList $nodes )
$nodes DOMNode | DOMNodeList

remove() public method

Removes a node from its parent, returns the node
public remove ( )

replace() public method

Replace a node with on or more other nodes, returns the replaced node.
public replace ( DOMNode | DOMNodeList $nodes )
$nodes DOMNode | DOMNodeList