PHP Class FluentDOM\Nodes\Creator

Afficher le fichier Open project: fluentdom/fluentdom

Méthodes publiques

Méthode Description
__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 )

Method Details

__clone() public méthode

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

__construct() public méthode

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

__get() public méthode

public __get ( string $name ) : mixed
$name string
Résultat mixed

__invoke() public méthode

public __invoke ( string $name, $parameters ) : Node
$name string
$parameters
Résultat FluentDOM\Nodes\Creator\Node

__isset() public méthode

public __isset ( string $name ) : boolean
$name string
Résultat boolean

__set() public méthode

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

cdata() public méthode

public cdata ( string $content ) : FluentDOM\CdataSection
$content string
Résultat FluentDOM\CdataSection

comment() public méthode

public comment ( string $content ) : FluentDOM\Comment
$content string
Résultat FluentDOM\Comment

each() public méthode

public each ( array | Traversable $traversable, callable $map = NULL ) : FluentDOM\Appendable
$traversable array | Traversable
$map callable
Résultat FluentDOM\Appendable

element() public méthode

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
Résultat FluentDOM\Element

pi() public méthode

public pi ( string $target, string $content ) : DOMProcessingInstruction
$target string
$content string
Résultat DOMProcessingInstruction

registerNamespace() public méthode

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