PHP Класс FluentDOM\Nodes\Creator

Показать файл Открыть проект

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

Метод Описание
__clone ( ) If the creator is cloned, a clone of the dom document is needed, too.
__construct ( string $version = '1.0', string $encoding = 'UTF-8' )
__get ( string $name ) : mixed
__invoke ( string $name, $parameters ) : Node
__isset ( string $name ) : boolean
__set ( string $name, mixed $value )
cdata ( string $content ) : FluentDOM\CdataSection
comment ( string $content ) : FluentDOM\Comment
each ( array | Traversable $traversable, callable $map = NULL ) : FluentDOM\Appendable
element ( string $name, $parameters ) : Element Create an Element node and configure it.
pi ( string $target, string $content ) : DOMProcessingInstruction
registerNamespace ( string $prefix, string $namespaceUri )

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

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

If the creator is cloned, a clone of the dom document is needed, too.
public __clone ( )

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

public __construct ( string $version = '1.0', string $encoding = 'UTF-8' )
$version string
$encoding string

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

public __get ( string $name ) : mixed
$name string
Результат mixed

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

public __invoke ( string $name, $parameters ) : Node
$name string
$parameters
Результат FluentDOM\Nodes\Creator\Node

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

public __isset ( string $name ) : boolean
$name string
Результат boolean

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

public __set ( string $name, mixed $value )
$name string
$value mixed

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

public cdata ( string $content ) : FluentDOM\CdataSection
$content string
Результат FluentDOM\CdataSection

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

public comment ( string $content ) : FluentDOM\Comment
$content string
Результат FluentDOM\Comment

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

public each ( array | Traversable $traversable, callable $map = NULL ) : FluentDOM\Appendable
$traversable array | Traversable
$map callable
Результат FluentDOM\Appendable

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

The first argument is the node name. All other arguments are flexible. - Arrays are set as attributes - Attribute and Namespace nodes are set as attributes - Nodes are appended as child nodes - FluentDOM\Appendable instances are appended - Strings or objects castable to string are appended as text nodes
public element ( string $name, $parameters ) : Element
$name string
$parameters
Результат FluentDOM\Element

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

public pi ( string $target, string $content ) : DOMProcessingInstruction
$target string
$content string
Результат DOMProcessingInstruction

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

public registerNamespace ( string $prefix, string $namespaceUri )
$prefix string
$namespaceUri string