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.
Detailsinteger $_entryIndex = '0'Current index on the collection of feed entries for the Iterator implementation.
Details__construct(
string $uri
=
null, string $string
=
null, Zend_Feed_Builder_Interface $builder
=
null
)
:
voidFeed constructor
The Zend_Feed_Abstract constructor takes the URI of a feed or a feed represented as a string and loads it as XML.
Details__sleep(
)
:
arrayPrepare for serialiation
Details__wakeup(
)
:
voidLoad the feed as an XML DOMDocument object
Details_buildEntryCache(
)
:
voidCache the individual feed elements so they don't need to be searched for on every operation.
Details_mapFeedEntries(
DOMElement $root, array $array
)
:
DOMElementGenerate the entries of the feed when working in write mode
Details_mapFeedHeaders(
array $array
)
:
DOMElementGenerate the header of the feed when working in write mode
Detailscount(
)
:
integerGet the number of entries in this feed object.
Detailscurrent(
)
:
mixedRequired by the Iterator interface.
Detailskey(
)
:
mixedRequired by the Iterator interface.
Detailsnext(
)
:
mixedRequired by the Iterator interface.
Detailsrewind(
)
:
voidRequired by the Iterator interface.
Detailssend(
)
:
voidSend feed to a http client with the correct header
Detailsvalid(
)
:
booleanRequired by the Iterator interface.
Details