Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Wraps a DOMElement allowing for SimpleXML-like access to attributes.
boolean $_appended = 'true'
DetailsDOMElement $_element = ''
Detailsstring $_encoding = 'UTF-8'
DetailsZend_Feed_Element $_parentElement = ''
Details__call(
string $var, mixed $unused
)
:
mixedGet 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.
Details__construct(
DOMElement $element
=
null
)
:
voidZend_Feed_Element constructor.
Details__get(
string $var
)
:
mixedMap variable access onto the underlying entry representation.
Get-style access returns a Zend_Feed_Element representing the child element accessed. To get string values, use method syntax with the __call() overriding.
Details__isset(
string $var
)
:
booleanMap isset calls onto the underlying entry representation.
Details__set(
string $var, string $val
)
:
voidMap variable sets onto the underlying entry representation.
Details__toString(
)
:
stringReturns the nodeValue of this element when this object is used in a string context.
Details__unset(
string $var
)
:
voidRemove all children matching $var.
Details_children(
string $var
)
:
arrayFinds children with tagnames matching $var
Similar to SimpleXML's children() method.
DetailsensureAppended(
)
:
voidAppends this element to its parent if necessary.
DetailsgetDOM(
)
:
DOMDocumentGet a DOM representation of the element
Returns the underlying DOM object, which can then be manipulated with full DOM methods.
DetailsgetEncoding(
)
:
stringGet encoding
DetailsoffsetExists(
string $offset
)
:
booleanRequired by the ArrayAccess interface.
DetailsoffsetGet(
string $offset
)
:
stringRequired by the ArrayAccess interface.
DetailsoffsetSet(
string $offset, string $value
)
:
stringRequired by the ArrayAccess interface.
DetailsoffsetUnset(
string $offset
)
:
booleanRequired by the ArrayAccess interface.
DetailssaveXml(
)
:
stringGet an XML string representation of this element
Returns a string of this element's XML, including the XML prologue.
DetailssaveXmlFragment(
)
:
stringGet the XML for only this element
Returns a string of this element's XML without prologue.
DetailssetDOM(
DOMElement $element
)
:
voidUpdate 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 Zend_Feed_Element.
DetailssetEncoding(
string $value
)
:
Zend_Feed_ElementSet encoding
DetailssetParent(
Zend_Feed_Element $element
)
:
voidSet the parent element of this object to another Zend_Feed_Element.
Details