Méthode | Description | |
---|---|---|
__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 |
Méthode | Description | |
---|---|---|
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 |
public __construct ( DOMElement $node ) | ||
$node | DOMElement |
public getIterator ( ) : Iterator | ||
Résultat | Iterator |