Zend Framework
1.12
|
Public Member Functions | |
__wakeup () | |
Override Zend_Feed_Abstract to set up the $_element and $_entries aliases. | |
__get ($var) | |
Make accessing some individual elements of the channel easier. | |
saveXml () | |
Override Zend_Feed_Element to include <rss> root node. | |
send () | |
Send feed to a http client with the correct header. | |
![]() | |
__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 | |
_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. | |
![]() | |
_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 | |
$_entryClassName = 'Zend_Feed_Entry_Rss' | |
$_entryElementName = 'item' | |
$_defaultNamespace = 'rss' | |
![]() | |
$_entryIndex = 0 | |
$_entries | |
![]() | |
$_element | |
$_encoding = 'UTF-8' | |
$_parentElement | |
$_appended = true | |
__get | ( | $var | ) |
Make accessing some individual elements of the channel easier.
Special accessors 'item' and 'items' are provided so that if you wish to iterate over an RSS channel's items, you can do so using foreach ($channel->items as $item) or foreach ($channel->item as $item).
string | $var | The property to access. |
__wakeup | ( | ) |
Override Zend_Feed_Abstract to set up the $_element and $_entries aliases.
Zend_Feed_Exception |
|
protected |
Generate the entries of the feed when working in write mode.
The following nodes are constructed for each feed entry <title>entry title</title> <link>url to feed entry</link> <guid>url to feed entry</guid> short text <content:encoded>long version, can contain html</content:encoded>
DOMElement | $root | the root node to use |
array | $array | the data to use |
|
protected |
Generate the header of the feed when working in write mode.
array | $array | the data to use |
saveXml | ( | ) |
Override Zend_Feed_Element to include <rss> root node.
send | ( | ) |
Send feed to a http client with the correct header.
Zend_Feed_Exception | if headers have already been sent |
|
protected |
|
protected |
|
protected |