Feed/Abstract.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Feed
- Version
- $Id$
\Zend_Feed_Abstract
- Implements
- Parent(s)
- \Zend_Feed_Element
- Children
- \Zend_Feed_Rss
- \Zend_Feed_Atom
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods
__construct(string $uri = null, string $string = null, \Zend_Feed_Builder_Interface $builder = null) : void
Feed constructor
Name | Type | Description |
---|---|---|
$uri | string | The full URI of the feed to load, or NULL if not retrieved via HTTP or as an array. |
$string | string | The feed as a string, or NULL if retrieved via HTTP or as an array. |
$builder | \Zend_Feed_Builder_Interface | The feed as a builder instance or NULL if retrieved as a string or via HTTP. |
Exception | Description |
---|---|
\Zend_Feed_Exception | If loading the feed failed. |
__wakeup() : void
Load the feed as an XML DOMDocument object
Exception | Description |
---|---|
\Zend_Feed_Exception |
_buildEntryCache() : void
Cache the individual feed elements so they don't need to be searched for on every operation.
_importFeedFromString(string $feed) : string
Import a feed from a string
Name | Type | Description |
---|---|---|
$feed | string |
Type | Description |
---|---|
string |
Exception | Description |
---|---|
\Zend_Feed_Exception | on detection of an XXE vector |
_mapFeedEntries(\DOMElement $root, array $array) : \DOMElement
Generate the entries of the feed when working in write mode
Name | Type | Description |
---|---|---|
$root | \DOMElement | the root node to use |
$array | array | the data to use |
Type | Description |
---|---|
\DOMElement | root node |
_mapFeedHeaders(array $array) : \DOMElement
Generate the header of the feed when working in write mode
Name | Type | Description |
---|---|---|
$array | array | the data to use |
Type | Description |
---|---|
\DOMElement | root node |
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. |
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. |
send() : void
Send feed to a http client with the correct header
Exception | Description |
---|---|
\Zend_Feed_Exception | if headers have already been sent |