PHP 클래스 FluentDOM\Nodes\Modifier

파일 보기 프로젝트 열기: fluentdom/fluentdom

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
getParentNode ( ) : DOMNode

메소드 상세

__construct() 공개 메소드

public __construct ( DOMNode $node )
$node DOMNode

appendChildren() 공개 메소드

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

getNode() 공개 메소드

public getNode ( ) : DOMNode
리턴 DOMNode

insertChildrenBefore() 공개 메소드

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

insertNodesAfter() 공개 메소드

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

insertNodesBefore() 공개 메소드

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

replaceChildren() 공개 메소드

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

replaceNode() 공개 메소드

public replaceNode ( array | Traversable $contentNodes ) : DOMNode
$contentNodes array | Traversable
리턴 DOMNode