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

__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).
Name | Type | Description |
---|---|---|
$var | string | The property to get. |
Type | Description |
---|---|
mixed |

addEntry(
\Zend_Gdata_App_Entry $value
)
:
\Zend_Gdata_App_Feed
Adds an entry representation to the array of entries contained within this feed
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_App_Entry | An individual entry to add. |
Type | Description |
---|---|
\Zend_Gdata_App_Feed | Provides a fluent interface |

count(
)
:
integer
Get the number of entries in this feed object.
Type | Description |
---|---|
integer | Entry count. |

current(
)
:
mixed
Required by the Iterator interface.
Type | Description |
---|---|
mixed | The current row, or null if no rows. |

getDOM(
\DOMDocument $doc
=
null, $majorVersion
=
1, $minorVersion
=
null
)
:
\DOMElement
Retrieves the DOM model representing this object and all children
Name | Type | Description |
---|---|---|
$doc | \DOMDocument | |
$majorVersion | ||
$minorVersion |
Type | Description |
---|---|
\DOMElement |

getEntry(
)
:
array
Gets the array of atom:entry elements contained within this atom:feed representation
Type | Description |
---|---|
array | Zend_Gdata_App_Entry array |

getNextFeed(
)
:
mixed|null
Retrieve the next set of results from this feed.
Type | Description |
---|---|
mixed|null | Returns the next set of results as a feed of the same class as this feed, or null if no results exist. |
Exception | Description |
---|---|
\Zend_Gdata_App_Exception |

getPreviousFeed(
)
:
mixed|null
Retrieve the previous set of results from this feed.
Type | Description |
---|---|
mixed|null | Returns the previous set of results as a feed of the same class as this feed, or null if no results exist. |
Exception | Description |
---|---|
\Zend_Gdata_App_Exception |

key(
)
:
mixed
Required by the Iterator interface.
Type | Description |
---|---|
mixed | The current row number (starts at 0), or NULL if no rows |

next(
)
:
mixed
Required by the Iterator interface.
Type | Description |
---|---|
mixed | The next row, or null if no more rows. |

offsetExists(
int $key
)
:
boolean
Required by the ArrayAccess interface
Name | Type | Description |
---|---|---|
$key | int | The index to check for existence |
Type | Description |
---|---|
boolean |

offsetGet(
int $key
)
:
void
Required by the ArrayAccess interface
Name | Type | Description |
---|---|---|
$key | int | The index to get |

offsetSet(
int $key, \Zend_Gdata_App_Entry $value
)
:
void
Required by the ArrayAccess interface
Name | Type | Description |
---|---|---|
$key | int | The index to set |
$value | \Zend_Gdata_App_Entry | The value to set |

offsetUnset(
int $key
)
:
void
Required by the ArrayAccess interface
Name | Type | Description |
---|---|---|
$key | int | The index to set |

setEntry(
array $value
)
:
\Zend_Gdata_App_Feed
Sets the array of atom:entry elements contained within this atom:feed representation
Name | Type | Description |
---|---|---|
$value | array | The array of Zend_Gdata_App_Entry elements |
Type | Description |
---|---|
\Zend_Gdata_App_Feed | Provides a fluent interface |

setMajorProtocolVersion(
\(int|\NULL) $value
)
:
void
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.
Name | Type | Description |
---|---|---|
$value | \(int|\NULL) | The major protocol version to use. |
Exception | Description |
---|---|
\Zend_Gdata_App_InvalidArgumentException |

setMinorProtocolVersion(
\(int|\NULL) $value
)
:
void
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.
Name | Type | Description |
---|---|---|
$value | \(int|\NULL) | The minor protocol version to use. |
Exception | Description |
---|---|
\Zend_Gdata_App_InvalidArgumentException |

takeChildFromDOM(
\DOMNode $child
)
:
void
Creates individual Entry objects of the appropriate type and stores them in the $_entry array based upon DOM data.
Name | Type | Description |
---|---|---|
$child | \DOMNode | The DOMNode to process |