PHP 클래스 FluentDOM\Query\Data

상속: implements IteratorAggregate, implements Countable
파일 보기 프로젝트 열기: fluentdom/fluentdom

공개 메소드들

메소드 설명
__construct ( DOMElement $node ) Create object with attached element node.
__get ( string $name ) : mixed Read a data attribute from the attached node.
__isset ( string $name ) : boolean Validate if the attached node has the data attribute.
__set ( string $name, mixed $value ) Change a data attribute on the attached node.
__unset ( string $name ) Remove a data attribute from the attached node.
count ( ) : integer countable Interface: return the number of data attributes
getIterator ( ) : Iterator IteratorAggregate Interface: allow to iterate the data attributes
toArray ( ) : array Convert data attributes into an array

비공개 메소드들

메소드 설명
decodeName ( string $name ) : string Convert the given attribute name with hyphens to camel case.
decodeValue ( string $value ) : mixed Decode the attribute value into a php variable/array/object
encodeName ( string $name ) : string Normalize a property name from camel case to lowercase with hyphens.
encodeValue ( mixed $value ) : string Encode php variable into a string. Array or Objects will be serialized using json encoding.
isDataProperty ( string $name ) : boolean Validate if the given attribute name is a data property name

메소드 상세

__construct() 공개 메소드

Create object with attached element node.
public __construct ( DOMElement $node )
$node DOMElement

__get() 공개 메소드

Read a data attribute from the attached node.
public __get ( string $name ) : mixed
$name string
리턴 mixed

__isset() 공개 메소드

Validate if the attached node has the data attribute.
public __isset ( string $name ) : boolean
$name string
리턴 boolean

__set() 공개 메소드

Change a data attribute on the attached node.
public __set ( string $name, mixed $value )
$name string
$value mixed

__unset() 공개 메소드

Remove a data attribute from the attached node.
public __unset ( string $name )
$name string

count() 공개 메소드

countable Interface: return the number of data attributes
public count ( ) : integer
리턴 integer

getIterator() 공개 메소드

IteratorAggregate Interface: allow to iterate the data attributes
public getIterator ( ) : Iterator
리턴 Iterator

toArray() 공개 메소드

Convert data attributes into an array
public toArray ( ) : array
리턴 array