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'
DOMElement $_element = ''
string $_encoding = 'UTF-8'
Zend_Feed_Element $_parentElement = ''
__call(
string $var, mixed $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.
__construct(
DOMElement $element
=
null
)
:
void
Zend_Feed_Element constructor.
__get(
string $var
)
:
mixed
Map 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.
__isset(
string $var
)
:
boolean
Map isset calls onto the underlying entry representation.
__set(
string $var, string $val
)
:
void
Map variable sets onto the underlying entry representation.
__toString(
)
:
string
Returns the nodeValue of this element when this object is used in a string context.
__unset(
string $var
)
:
void
Remove all children matching $var.
_children(
string $var
)
:
array
Finds children with tagnames matching $var
Similar to SimpleXML's children() method.
ensureAppended(
)
:
void
Appends this element to its parent if necessary.
getDOM(
)
:
DOMDocument
Get a DOM representation of the element
Returns the underlying DOM object, which can then be manipulated with full DOM methods.
getEncoding(
)
:
string
Get encoding
offsetExists(
string $offset
)
:
boolean
Required by the ArrayAccess interface.
offsetGet(
string $offset
)
:
string
Required by the ArrayAccess interface.
offsetSet(
string $offset, string $value
)
:
string
Required by the ArrayAccess interface.
offsetUnset(
string $offset
)
:
boolean
Required by the ArrayAccess interface.
saveXml(
)
:
string
Get an XML string representation of this element
Returns a string of this element's XML, including the XML prologue.
saveXmlFragment(
)
:
string
Get the XML for only this element
Returns a string of this element's XML without prologue.
setDOM(
DOMElement $element
)
:
void
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 Zend_Feed_Element.
setEncoding(
string $value
)
:
Zend_Feed_Element
Set encoding
setParent(
Zend_Feed_Element $element
)
:
void
Set the parent element of this object to another Zend_Feed_Element.