Метод |
Описание |
|
__get ( $name ) |
|
|
__set ( $name, $value ) |
|
|
append ( mixed $value ) |
Append a value to the element node |
|
appendElement ( string $name, string $content = '', array $attributes = NULL ) : Element |
Append an child element |
|
appendToParentNode ( ) |
|
|
appendXml ( string $xmlFragment ) |
Append an xml fragment to the element node |
|
applyNamespaces ( null | string | array $prefixes = NULL ) |
Sets all namespaces registered on the document as xmlns attributes on the element. |
|
count ( ) : integer |
Return child node count |
|
find ( string $expression ) : Query |
Put the current node into a FluentDOM\Query
and call find() on it. |
|
getAttribute ( string $name ) : string |
Get an attribute value |
|
getAttributeNode ( string $name ) : Attribute | DOMAttr |
Get an attribute value |
|
getElementsByTagName ( string $name ) : DOMNodeList |
Allow getElementsByTagName to use the defined namespaces. |
|
getIterator ( ) : ElementIterator |
Return Iterator for child nodes. |
|
hasAttribute ( string $name ) : boolean |
Validate if an attribute exists |
|
offsetExists ( integer | string $offset ) : boolean |
Validate if an offset exists. If a integer is provided
it will check for a child node, if a string is provided for an attribute. |
|
offsetGet ( integer | string $offset ) : DOMNode | mixed | string |
Get a child node by its numeric index, or an attribute by its name. |
|
offsetSet ( integer | string $offset, DOMNode | string $value ) : DOMAttr | DOMNode | void |
|
|
offsetUnset ( integer | string $offset ) |
Remove a child node using its index or an attribute node using its name. |
|
removeAttribute ( string $name ) : boolean |
Set an attribute on an element |
|
saveHtml ( ) : string |
save the element node as HTML |
|
saveXml ( ) : string |
save the element node as XML |
|
saveXmlFragment ( ) : string |
Save the child nodes of this element as an XML fragment. |
|
setAttribute ( string $name, string $value ) : DOMAttr |
Set an attribute on an element |
|
setIdAttribute ( string $name, boolean $isId ) |
Set an attribute on an element |
|