Implements interfaces:
Wraps a DOMElement allowing for SimpleXML-like access to attributes.
Located in /Xml_Element/lib/Horde/Xml/Element.php (line 24)
Class | Description |
---|---|
![]() |
The Horde_Feed_Base class is an abstract class representing feeds. |
![]() |
Horde_Feed_Entry_Base represents a single entry in an Atom or RSS feed. |
A string representation of the element, used when serializing/unserializing.
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.
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().
Horde_Xml_Element constructor.
Append a child node to this element.
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 #AttributeName -> An attribute $AttributeName will be 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
Get a DOM representation of the element
Returns the underlying DOM object, which can then be manipulated with full DOM methods.
Required by the ArrayAccess interface.
Required by the ArrayAccess interface.
Required by the ArrayAccess interface.
Required by the ArrayAccess interface.
Get an XML string representation of this element
Returns a string of this element's XML, including the XML prologue.
Get the XML for only this element
Returns a string of this element's XML without prologue.
Update the object from a DOM element
Take a DOMElement object, which may be originally from a call to getDom() or may be custom created, and use it as the DOM tree for this Horde_Xml_Element.
Set the parent element of this object to another Horde_Xml_Element.
Finds children with tagnames matching $var
Similar to SimpleXML's children() method.
Appends this element to its parent if necessary.
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.
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.
Map isset calls onto the underlying entry representation.
Only supported by PHP 5.1 and later.
Map variable sets onto the underlying entry representation.
Prepare for serialization
Returns the nodeValue of this element when this object is used in a string context.
Remove all children matching $var.
Only supported by PHP 5.1 and later.
Unserialization handler; parse $this->_element as either an XML string or a real DOMElement.
Documentation generated on Sun, 30 Jan 2011 05:17:05 +0000 by phpDocumentor 1.4.3