PHP 클래스 FluentDOM\Nodes\Creator

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

공개 메소드들

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