Gdata/App/Feed.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.
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

Package: Zend_Gdata\App
Atom feed class
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

>VPropertyprotectedarray $_entry = array()
Cache of feed entries.
Default valuearray()Details
Type
array
>VPropertyprotectedint $_entryIndex = 0
Current location in $_entry array
Default value0Details
Type
int
>VPropertyprotectedstring $_rootElement = 'feed'
The root xml element of this data element
Default value'feed'Details
Type
string

Methods

methodpublic__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).
Parameters
NameTypeDescription
$varstring

The property to get.

Returns
TypeDescription
mixed
methodpublicaddEntry( $value) : \Zend_Gdata_App_Feed

Adds an entry representation to the array of entries contained within this feed

Parameters
NameTypeDescription
$value
Returns
TypeDescription
\Zend_Gdata_App_FeedProvides a fluent interface
methodpubliccount() : integer

Get the number of entries in this feed object.

Returns
TypeDescription
integerEntry count.
methodpubliccurrent() : mixed

Required by the Iterator interface.

Returns
TypeDescription
mixedThe current row, or null if no rows.
methodpublicgetDOM(\DOMDocument $doc = null,  $majorVersion = 1,  $minorVersion = null) : \DOMElement

Retrieves the DOM model representing this object and all children

Parameters
NameTypeDescription
$doc\DOMDocument
$majorVersion
$minorVersion
Returns
TypeDescription
\DOMElement
methodpublicgetEntry() : array

Gets the array of atom:entry elements contained within this atom:feed representation

Returns
TypeDescription
arrayZend_Gdata_App_Entry array
methodpublicgetNextFeed() : mixed | null

Retrieve the next set of results from this feed.

Returns
TypeDescription
mixed | nullReturns the next set of results as a feed of the same class as this feed, or null if no results exist.
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
methodpublicgetPreviousFeed() : mixed | null

Retrieve the previous set of results from this feed.

Returns
TypeDescription
mixed | nullReturns the previous set of results as a feed of the same class as this feed, or null if no results exist.
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
methodpublickey() : mixed

Required by the Iterator interface.

Returns
TypeDescription
mixedThe current row number (starts at 0), or NULL if no rows
methodpublicnext() : mixed

Required by the Iterator interface.

Returns
TypeDescription
mixedThe next row, or null if no more rows.
methodpublicoffsetExists(int $key) : boolean

Required by the ArrayAccess interface

Parameters
NameTypeDescription
$keyint

The index to check for existence

Returns
TypeDescription
boolean
methodpublicoffsetGet(int $key) : void

Required by the ArrayAccess interface

Parameters
NameTypeDescription
$keyint

The index to get

methodpublicoffsetSet(int $key, \Zend_Gdata_App_Entry $value) : void

Required by the ArrayAccess interface

Parameters
NameTypeDescription
$keyint

The index to set

$value\Zend_Gdata_App_Entry

The value to set

methodpublicoffsetUnset(int $key) : void

Required by the ArrayAccess interface

Parameters
NameTypeDescription
$keyint

The index to set

methodpublicrewind() : void

Required by the Iterator interface.

methodpublicsetEntry(array $value) : \Zend_Gdata_App_Feed

Sets the array of atom:entry elements contained within this atom:feed representation

Parameters
NameTypeDescription
$valuearray

The array of Zend_Gdata_App_Entry elements

Returns
TypeDescription
\Zend_Gdata_App_FeedProvides a fluent interface
methodpublicsetMajorProtocolVersion(\(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.
Parameters
NameTypeDescription
$value\(int | \NULL)

The major protocol version to use.

Throws
ExceptionDescription
\Zend_Gdata_App_InvalidArgumentException
Details
See
 
methodpublicsetMinorProtocolVersion(\(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.
Parameters
NameTypeDescription
$value\(int | \NULL)

The minor protocol version to use.

Throws
ExceptionDescription
\Zend_Gdata_App_InvalidArgumentException
Details
See
 
methodprotectedtakeChildFromDOM(\DOMNode $child) : void

Creates individual Entry objects of the appropriate type and stores them in the $_entry array based upon DOM data.

Parameters
NameTypeDescription
$child\DOMNode

The DOMNode to process

methodpublicvalid() : boolean

Required by the Iterator interface.

Returns
TypeDescription
booleanWhether the iteration is valid
Documentation was generated by phpDocumentor 2.2.0 .