Abstract Class Zend_Feed_Abstract

Description

Implements interfaces:

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.

Located in /Zend/Feed/Abstract.php (line 39)

Zend_Feed_Element
   |
   --Zend_Feed_Abstract
Direct descendents
Class Description
 class Zend_Feed_Atom The Zend_Feed_Atom class is a concrete subclass of the general
 class Zend_Feed_Rss The Zend_Feed_Rss object is a concrete subclass of Zend_Feed_Abstract meant
Variable Summary
 array $_entries
 mixed $_entryIndex
Method Summary
 Zend_Feed_Abstract __construct ([string $uri = null], [string $string = null])
 integer count ()
 mixed current ()
 mixed key ()
 mixed next ()
 void rewind ()
 boolean valid ()
 void __get (string $var)
 array __sleep ()
 void __wakeup ()
Variables
array $_entries (line 49)
  • access: protected
mixed $_entryIndex = 0 (line 44)
  • access: protected

Inherited Variables

Inherited from Zend_Feed_Element

Zend_Feed_Element::$_appended
Zend_Feed_Element::$_element
Zend_Feed_Element::$_parentElement
Methods
Constructor __construct (line 61)

The Zend_Feed_Abstract constructor takes the URI of a feed or a feed represented as a string and loads it as XML.

  • access: public
  • throws: Zend_Feed_Exception If loading the feed failed.
Zend_Feed_Abstract __construct ([string $uri = null], [string $string = null])
  • string $uri: The full URI of the feed to load, or NULL if not retrieved via HTTP.
  • string $string: The feed as a string, or NULL if retrieved via HTTP.

Redefinition of:
Zend_Feed_Element::__construct()
Zend_Feed_Element constructor.
count (line 164)

Get the number of entries in this feed object.

  • return: Entry count.
  • access: public
integer count ()
current (line 187)

Required by the Iterator interface.

  • return: The current row, or null if no rows.
  • access: public
mixed current ()
key (line 200)

Required by the Iterator interface.

  • return: The current row number (starts at 0), or NULL if no rows
  • access: public
mixed key ()
next (line 212)

Required by the Iterator interface.

  • return: The next row, or null if no more rows.
  • access: public
mixed next ()
rewind (line 175)

Required by the Iterator interface.

  • access: public
  • internal:
void rewind ()
valid (line 224)

Required by the Iterator interface.

  • return: Whether the iteration is valid
  • access: public
boolean valid ()
_buildEntryCache (line 148)
  • access: protected
  • internal:
void _buildEntryCache ()
__get (line 117)

Make accessing individual elements of the feed easier.

  • access: public
void __get (string $var)
  • string $var: The property to access.

Redefinition of:
Zend_Feed_Element::__get()
Map variable access onto the underlying entry representation.
__sleep (line 104)

Prepare for serialiation

  • access: public
array __sleep ()
__wakeup (line 84)

Load the feed as an XML DOMDocument object

  • access: public
void __wakeup ()

Redefined in descendants as:

Inherited Methods

Inherited From Zend_Feed_Element

 Zend_Feed_Element::__construct()
 Zend_Feed_Element::ensureAppended()
 Zend_Feed_Element::getDOM()
 Zend_Feed_Element::offsetExists()
 Zend_Feed_Element::offsetGet()
 Zend_Feed_Element::offsetSet()
 Zend_Feed_Element::offsetUnset()
 Zend_Feed_Element::saveXML()
 Zend_Feed_Element::saveXMLFragment()
 Zend_Feed_Element::setDOM()
 Zend_Feed_Element::setParent()
 Zend_Feed_Element::_children()
 Zend_Feed_Element::__call()
 Zend_Feed_Element::__get()
 Zend_Feed_Element::__isset()
 Zend_Feed_Element::__set()
 Zend_Feed_Element::__toString()
 Zend_Feed_Element::__unset()

Documentation generated on Tue, 18 Apr 2006 11:54:36 -0700 by phpDocumentor 1.3.0RC3