Zend Framework
1.12
|
Public Member Functions | |
__construct ($element=null) | |
Zend_Feed_Element constructor. | |
getDOM () | |
Get a DOM representation of the element. | |
setDOM (DOMElement $element) | |
Update the object from a DOM element. | |
setParent (Zend_Feed_Element $element) | |
Set the parent element of this object to another Zend_Feed_Element. | |
saveXml () | |
Get an XML string representation of this element. | |
saveXmlFragment () | |
Get the XML for only this element. | |
getEncoding () | |
Get encoding. | |
setEncoding ($value) | |
Set encoding. | |
__get ($var) | |
Map variable access onto the underlying entry representation. | |
__set ($var, $val) | |
Map variable sets onto the underlying entry representation. | |
__isset ($var) | |
Map isset calls onto the underlying entry representation. | |
__call ($var, $unused) | |
Get the value of an element with method syntax. | |
__unset ($var) | |
Remove all children matching $var. | |
__toString () | |
Returns the nodeValue of this element when this object is used in a string context. | |
offsetExists ($offset) | |
Required by the ArrayAccess interface. | |
offsetGet ($offset) | |
Required by the ArrayAccess interface. | |
offsetSet ($offset, $value) | |
Required by the ArrayAccess interface. | |
offsetUnset ($offset) | |
Required by the ArrayAccess interface. | |
Protected Member Functions | |
ensureAppended () | |
Appends this element to its parent if necessary. | |
_children ($var) | |
Finds children with tagnames matching $var. | |
Protected Attributes | |
$_element | |
$_encoding = 'UTF-8' | |
$_parentElement | |
$_appended = true | |
__construct | ( | $element = null | ) |
Zend_Feed_Element constructor.
DOMElement | $element | The DOM element we're encapsulating. |
__call | ( | $var, | |
$unused | |||
) |
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. |
mixed | $unused | This parameter is not used. |
__get | ( | $var | ) |
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.
string | $var | The property to access. |
__isset | ( | $var | ) |
Map isset calls onto the underlying entry representation.
string | $var |
__set | ( | $var, | |
$val | |||
) |
Map variable sets onto the underlying entry representation.
string | $var | The property to change. |
string | $val | The property's new value. |
Zend_Feed_Exception |
__toString | ( | ) |
Returns the nodeValue of this element when this object is used in a string context.
__unset | ( | $var | ) |
Remove all children matching $var.
string | $var |
|
protected |
Finds children with tagnames matching $var.
Similar to SimpleXML's children() method.
string | $var | Tagname to match, can be either namespace:tagName or just tagName. |
|
protected |
Appends this element to its parent if necessary.
getDOM | ( | ) |
Get a DOM representation of the element.
Returns the underlying DOM object, which can then be manipulated with full DOM methods.
getEncoding | ( | ) |
Get encoding.
offsetExists | ( | $offset | ) |
Required by the ArrayAccess interface.
string | $offset |
offsetGet | ( | $offset | ) |
Required by the ArrayAccess interface.
string | $offset |
offsetSet | ( | $offset, | |
$value | |||
) |
Required by the ArrayAccess interface.
string | $offset | |
string | $value |
offsetUnset | ( | $offset | ) |
Required by the ArrayAccess interface.
string | $offset |
saveXml | ( | ) |
Get an XML string representation of this element.
Returns a string of this element's XML, including the XML prologue.
saveXmlFragment | ( | ) |
Get the XML for only this element.
Returns a string of this element's XML without prologue.
setDOM | ( | DOMElement | $element | ) |
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.
DOMElement | $element |
setEncoding | ( | $value | ) |
setParent | ( | Zend_Feed_Element | $element | ) |
Set the parent element of this object to another Zend_Feed_Element.
Zend_Feed_Element | $element |
|
protected |
|
protected |
|
protected |
|
protected |