Zend Framework
1.12
|
Public Member Functions | |
__construct ($uri=null, $string=null, Zend_Feed_Builder_Interface $builder=null) | |
Feed constructor. | |
__wakeup () | |
Load the feed as an XML DOMDocument object. | |
__sleep () | |
Prepare for serialiation. | |
count () | |
Get the number of entries in this feed object. | |
rewind () | |
Required by the Iterator interface. | |
current () | |
Required by the Iterator interface. | |
key () | |
Required by the Iterator interface. | |
next () | |
Required by the Iterator interface. | |
valid () | |
Required by the Iterator interface. | |
send () | |
Send feed to a http client with the correct header. | |
![]() | |
__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 | |
_buildEntryCache () | |
Cache the individual feed elements so they don't need to be searched for on every operation. | |
_mapFeedHeaders ($array) | |
Generate the header of the feed when working in write mode. | |
_mapFeedEntries (DOMElement $root, $array) | |
Generate the entries of the feed when working in write mode. | |
_importFeedFromString ($feed) | |
Import a feed from a string. | |
![]() | |
ensureAppended () | |
Appends this element to its parent if necessary. | |
_children ($var) | |
Finds children with tagnames matching $var. | |
Protected Attributes | |
$_entryIndex = 0 | |
$_entries | |
![]() | |
$_element | |
$_encoding = 'UTF-8' | |
$_parentElement | |
$_appended = true | |
__construct | ( | $uri = null , |
|
$string = null , |
|||
Zend_Feed_Builder_Interface | $builder = null |
||
) |
Feed constructor.
The Zend_Feed_Abstract constructor takes the URI of a feed or a feed represented as a string and loads it as XML.
string | $uri | The full URI of the feed to load, or NULL if not retrieved via HTTP or as an array. |
string | $string | The feed as a string, or NULL if retrieved via HTTP or as an array. |
Zend_Feed_Builder_Interface | $builder | The feed as a builder instance or NULL if retrieved as a string or via HTTP. |
Zend_Feed_Exception | If loading the feed failed. |
__sleep | ( | ) |
Prepare for serialiation.
__wakeup | ( | ) |
Load the feed as an XML DOMDocument object.
Zend_Feed_Exception |
|
protected |
Cache the individual feed elements so they don't need to be searched for on every operation.
|
protected |
Import a feed from a string.
Protects against XXE attack vectors.
string | $feed |
Zend_Feed_Exception | on detection of an XXE vector |
|
abstractprotected |
Generate the entries of the feed when working in write mode.
DOMElement | $root | the root node to use |
array | $array | the data to use |
|
abstractprotected |
Generate the header of the feed when working in write mode.
array | $array | the data to use |
count | ( | ) |
Get the number of entries in this feed object.
current | ( | ) |
Required by the Iterator interface.
key | ( | ) |
Required by the Iterator interface.
next | ( | ) |
Required by the Iterator interface.
rewind | ( | ) |
Required by the Iterator interface.
|
abstract |
Send feed to a http client with the correct header.
Zend_Feed_Exception | if headers have already been sent |
valid | ( | ) |
Required by the Iterator interface.
|
protected |
|
protected |