PHP Class FluentDOM\Nodes\Modifier

Datei anzeigen Open project: fluentdom/fluentdom

Public Methods

Method Description
__construct ( DOMNode $node )
appendChildren ( array | Traversable $contentNodes ) : array Append to content nodes to the target nodes.
getNode ( ) : DOMNode
insertChildrenBefore ( array | Traversable $contentNodes ) : array Insert nodes into target as first children.
insertNodesAfter ( array | Traversable $contentNodes ) : array Insert nodes after the target node.
insertNodesBefore ( array | Traversable $contentNodes ) : array Insert nodes before the target node.
replaceChildren ( array | Traversable $contentNodes ) : array Replace the target node children with the content nodes
replaceNode ( array | Traversable $contentNodes ) : DOMNode

Private Methods

Method Description
getParentNode ( ) : DOMNode

Method Details

__construct() public method

public __construct ( DOMNode $node )
$node DOMNode

appendChildren() public method

Append to content nodes to the target nodes.
public appendChildren ( array | Traversable $contentNodes ) : array
$contentNodes array | Traversable
return array new nodes

getNode() public method

public getNode ( ) : DOMNode
return DOMNode

insertChildrenBefore() public method

Insert nodes into target as first children.
public insertChildrenBefore ( array | Traversable $contentNodes ) : array
$contentNodes array | Traversable
return array

insertNodesAfter() public method

Insert nodes after the target node.
public insertNodesAfter ( array | Traversable $contentNodes ) : array
$contentNodes array | Traversable
return array

insertNodesBefore() public method

Insert nodes before the target node.
public insertNodesBefore ( array | Traversable $contentNodes ) : array
$contentNodes array | Traversable
return array

replaceChildren() public method

Replace the target node children with the content nodes
public replaceChildren ( array | Traversable $contentNodes ) : array
$contentNodes array | Traversable
return array new nodes

replaceNode() public method

public replaceNode ( array | Traversable $contentNodes ) : DOMNode
$contentNodes array | Traversable
return DOMNode