PHP Класс FluentDOM\Transformer\Namespaces\Replace

Attributes and Elements without a namespace get their prefix removed. A change from no namespace to a namespace will not affect attributes.
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( DOMDocument $document, array $namespaces )
__toString ( ) : string Create a document with the replaced namespaces and return it as XML string.
getDocument ( ) Create a document with the replaced namespaces.

Приватные методы

Метод Описание
getMappedNamespace ( string $namespaceUri ) : string
importAttribute ( DOMElement $parent, DOMAttr $source )
importElement ( DOMNode $parent, DOMElement $source )
importNode ( DOMNode $parent, DOMNode $source )

Описание методов

__construct() публичный Метод

public __construct ( DOMDocument $document, array $namespaces )
$document DOMDocument
$namespaces array

__toString() публичный Метод

Create a document with the replaced namespaces and return it as XML string.
public __toString ( ) : string
Результат string

getDocument() публичный Метод

Create a document with the replaced namespaces.
public getDocument ( )