Gdata/App/Feed.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Gdata
- Subpackage
- App
- Version
- $Id$
\Zend_Gdata_App_Feed
- Implements
- Parent(s)
- \Zend_Gdata_App_FeedSourceParent < \Zend_Gdata_App_FeedEntryParent < \Zend_Gdata_App_Base
- Children
- \Zend_Gdata_Feed
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods
__get(string $var) : mixed
Make accessing some individual elements of the feed easier.
Name | Type | Description |
---|---|---|
$var | string | The property to get. |
Type | Description |
---|---|
mixed |
addEntry( $value) : \Zend_Gdata_App_Feed
Adds an entry representation to the array of entries contained within this feed
Name | Type | Description |
---|---|---|
$value |
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.
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.
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 |