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.
The Zend_Feed_Abstract class is an abstract class representing feeds.
Zend_Feed_Abstract implements two core PHP 5 interfaces: ArrayAccess and Iterator. In both cases the collection being treated as an array is considered to be the entry collection, such that iterating over the feed takes you through each of the feed.s entries.
array $_entries = ''
Cache of feed entries.
integer $_entryIndex = '0'
Current index on the collection of feed entries for the Iterator implementation.
__construct(
string $uri
=
null, string $string
=
null, Zend_Feed_Builder_Interface $builder
=
null
)
:
void
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.
__sleep(
)
:
array
Prepare for serialiation
__wakeup(
)
:
void
Load the feed as an XML DOMDocument object
_buildEntryCache(
)
:
void
Cache the individual feed elements so they don't need to be searched for on every operation.
_mapFeedEntries(
DOMElement $root, array $array
)
:
DOMElement
Generate the entries of the feed when working in write mode
_mapFeedHeaders(
array $array
)
:
DOMElement
Generate the header of the feed when working in write mode
count(
)
:
integer
Get the number of entries in this feed object.
current(
)
:
mixed
Required by the Iterator interface.
key(
)
:
mixed
Required by the Iterator interface.
next(
)
:
mixed
Required by the Iterator interface.
rewind(
)
:
void
Required by the Iterator interface.
send(
)
:
void
Send feed to a http client with the correct header
valid(
)
:
boolean
Required by the Iterator interface.