PHP Class FluentDOM\Nodes\Modifier

Afficher le fichier Open project: fluentdom/fluentdom

Méthodes publiques

Méthode 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

Méthode Description
getParentNode ( ) : DOMNode

Method Details

__construct() public méthode

public __construct ( DOMNode $node )
$node DOMNode

appendChildren() public méthode

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

getNode() public méthode

public getNode ( ) : DOMNode
Résultat DOMNode

insertChildrenBefore() public méthode

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

insertNodesAfter() public méthode

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

insertNodesBefore() public méthode

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

replaceChildren() public méthode

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

replaceNode() public méthode

public replaceNode ( array | Traversable $contentNodes ) : DOMNode
$contentNodes array | Traversable
Résultat DOMNode