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.
Atom feed class
array $_entry = 'array'
Cache of feed entries.
int $_entryIndex = '0'
Current location in $_entry array
string $_rootElement = 'feed'
The root xml element of this data element
__get(
string $var
)
:
mixed
Make accessing some individual elements of the feed easier.
Special accessors 'entry' and 'entries' are provided so that if you wish to iterate over an Atom feed's entries, you can do so using foreach ($feed->entries as $entry) or foreach ($feed->entry as $entry).
addEntry(
Zend_Gdata_App_Entry $value
)
:
Zend_Gdata_App_Feed
Adds an entry representation to the array of entries contained within this feed
count(
)
:
integer
Get the number of entries in this feed object.
current(
)
:
mixed
Required by the Iterator interface.
getDOM(
DOMDocument $doc
=
null, $majorVersion
=
1, $minorVersion
=
null
)
:
DOMElement
Retrieves the DOM model representing this object and all children
getEntry(
)
:
array
Gets the array of atom:entry elements contained within this atom:feed representation
getNextFeed(
)
:
mixed|null
Retrieve the next set of results from this feed.
getPreviousFeed(
)
:
mixed|null
Retrieve the previous set of results from this feed.
key(
)
:
mixed
Required by the Iterator interface.
next(
)
:
mixed
Required by the Iterator interface.
offsetExists(
int $key
)
:
boolean
Required by the ArrayAccess interface
offsetGet(
int $key
)
:
Required by the ArrayAccess interface
offsetSet(
int $key, Zend_Gdata_App_Entry $value
)
:
void
Required by the ArrayAccess interface
offsetUnset(
int $key
)
:
Required by the ArrayAccess interface
rewind(
)
:
void
Required by the Iterator interface.
setEntry(
array $value
)
:
Zend_Gdata_App_Feed
Sets the array of atom:entry elements contained within this atom:feed representation
setMajorProtocolVersion(
(int|NULL) $value
)
:
Set the major protocol version that should be used. Values < 1 will cause a Zend_Gdata_App_InvalidArgumentException to be thrown.
This value will be propogated to all child entries.
setMinorProtocolVersion(
(int|NULL) $value
)
:
Set the minor protocol version that should be used. If set to NULL, no minor protocol version will be sent to the server. Values < 0 will cause a Zend_Gdata_App_InvalidArgumentException to be thrown.
This value will be propogated to all child entries.
takeChildFromDOM(
DOMNode $child
)
:
Creates individual Entry objects of the appropriate type and stores them in the $_entry array based upon DOM data.
valid(
)
:
boolean
Required by the Iterator interface.