PHP Class Goetas\Twital\Helper\DOMHelper

Author: Asmir Mustafic ([email protected])
Afficher le fichier Open project: goetas/twital Class Usage Examples

Méthodes publiques

Méthode Description
checkNamespaces ( DOMElement $element, array $namespaces = [] )
copyElementInNs ( DOMElement $oldElement, string $newNamespace ) : mixed
insertAfterSet ( DOMNode $node, array $newNodes )
remove ( DOMNode $ref )
removeChilds ( DOMNode $ref )
replaceWithSet ( DOMNode $node, array $newNodes )

Method Details

checkNamespaces() public static méthode

public static checkNamespaces ( DOMElement $element, array $namespaces = [] )
$element DOMElement
$namespaces array

copyElementInNs() public static méthode

public static copyElementInNs ( DOMElement $oldElement, string $newNamespace ) : mixed
$oldElement DOMElement
$newNamespace string
Résultat mixed

insertAfterSet() public static méthode

public static insertAfterSet ( DOMNode $node, array $newNodes )
$node DOMNode
$newNodes array

remove() public static méthode

public static remove ( DOMNode $ref )
$ref DOMNode

removeChilds() public static méthode

public static removeChilds ( DOMNode $ref )
$ref DOMNode

replaceWithSet() public static méthode

public static replaceWithSet ( DOMNode $node, array $newNodes )
$node DOMNode
$newNodes array