$_namespaces
$_namespaces : array
Wraps a DOMElement allowing for SimpleXML-like access to attributes.
$_parentElement : \Horde_Xml_Element
lookupNamespace( $prefix) : string
Get the full version of a namespace prefix
Looks up a prefix (atom:, etc.) in the list of registered namespaces and returns the full namespace URI if available. Returns the prefix, unmodified, if it's not registered.
$prefix |
registerNamespace(string $prefix, string $namespaceURI)
Add a namespace and prefix to the registered list
Takes a prefix and a full namespace URI and adds them to the list of registered namespaces for use by Horde_Xml_Element::lookupNamespace().
string | $prefix | The namespace prefix |
string | $namespaceURI | The full namespace URI |
fromArray( $array)
Add child elements and attributes to this element from a simple key => value hash. Keys can be:
ElementName -> <$ElementName> will be appended with a value of $value
added to this element with a value
of $value
ElementName#AttributeName -> <$ElementName> will be appended to this element if it doesn't already exist, and have its attribute $AttributeName set to $value
$array | Hash to import into this element. |
appendChild(\Horde_Xml_Element $element)
Append a child node to this element.
\Horde_Xml_Element | $element | The element to append. |
__get(string $var) : mixed
Map variable access onto the underlying entry representation.
Get-style access returns a Horde_Xml_Element representing the child element accessed. To get string values, use method syntax with the __call() overriding.
string | $var | The property to access. |
__call(string $var, $unused) : mixed
Get the value of an element with method syntax.
Map method calls to get the string value of the requested element. If there are multiple elements that match, this will return an array of those objects.
string | $var | The element to get the string value of. |
$unused |
The node's value, null, or an array of nodes.