Feed/Reader.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Feed_Reader
- Version
- $Id$
\Zend_Feed_Reader
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties

$_extensions = array('feed' => array('DublinCore_Feed', 'Atom_Feed'), 'entry' => array('Content_Entry', 'DublinCore_Entry', 'Atom_Entry'), 'core' => array('DublinCore_Feed', 'Atom_Feed', 'Content_Entry', 'DublinCore_Entry', 'Atom_Entry'))array('feed' => array('DublinCore_Feed', 'Atom_Feed'), 'entry' => array('Content_Entry', 'DublinCore_Entry', 'Atom_Entry'), 'core' => array('DublinCore_Feed', 'Atom_Feed', 'Content_Entry', 'DublinCore_Entry', 'Atom_Entry'))Details- Type
- n/a

\Zend_Http_Client $_httpClient = nullnullDetails
boolean $_httpMethodOverride = falsefalseDetails- Type
- boolean
Methods

addPrefixPath(string $prefix, string $path) : voidAdd prefix path for loading Extensions
| Name | Type | Description |
|---|---|---|
| $prefix | string | |
| $path | string |

addPrefixPaths(array $spec) : voidAdd multiple Extension prefix paths at once
| Name | Type | Description |
|---|---|---|
| $spec | array |

arrayUnique( $array) : arrayUtility method to apply array_unique operation to a multidimensional array.
| Name | Type | Description |
|---|---|---|
| $array |
| Type | Description |
|---|---|
| array |

detectType(\Zend_Feed_Abstract | \DOMDocument | string $feed, bool $specOnly = false) : stringDetect the feed type of the provided feed
| Name | Type | Description |
|---|---|---|
| $feed | \Zend_Feed_Abstract | \DOMDocument | string | |
| $specOnly | bool |
| Type | Description |
|---|---|
| string |
| Exception | Description |
|---|---|
| \Zend_Feed_Exception |

getHttpClient() : \Zend_Http_Client_AbstractGets the HTTP client object. If none is set, a new Zend_Http_Client will be used.
| Type | Description |
|---|---|
| \Zend_Http_Client_Abstract |

getPluginLoader() : \Zend_Loader_PluginLoader_InterfaceGet plugin loader for use with Extensions
| Type | Description |
|---|---|
| \Zend_Loader_PluginLoader_Interface | $loader |

import( $uri, string $etag = null, string $lastModified = null) : \Zend_Feed_Reader_FeedInterfaceImport a feed by providing a URL
| Name | Type | Description |
|---|---|---|
| $uri | ||
| $etag | string | OPTIONAL Last received ETag for this resource |
| $lastModified | string | OPTIONAL Last-Modified value for this resource |
| Type | Description |
|---|---|
| \Zend_Feed_Reader_FeedInterface |

importFeed(\Zend_Feed_Abstract $feed) : \Zend_Feed_Reader_FeedInterfaceImport a feed by providing a Zend_Feed_Abstract object
| Name | Type | Description |
|---|---|---|
| $feed | \Zend_Feed_Abstract | A fully instantiated Zend_Feed object |
| Type | Description |
|---|---|
| \Zend_Feed_Reader_FeedInterface |

importFile(string $filename) : \Zend_Feed_Reader_FeedInterfaceImports a feed from a file located at $filename.
| Name | Type | Description |
|---|---|---|
| $filename | string |
| Type | Description |
|---|---|
| \Zend_Feed_Reader_FeedInterface |
| Exception | Description |
|---|---|
| \Zend_Feed_Exception |

importString(string $string) : \Zend_Feed_Reader_FeedInterfaceImport a feed from a string
| Name | Type | Description |
|---|---|---|
| $string | string |
| Type | Description |
|---|---|
| \Zend_Feed_Reader_FeedInterface |

isRegistered(string $extensionName) : booleanIs a given named Extension registered?
| Name | Type | Description |
|---|---|---|
| $extensionName | string |
| Type | Description |
|---|---|
| boolean |

registerExtension(string $name) : voidRegister an Extension by name
| Name | Type | Description |
|---|---|---|
| $name | string |
| Exception | Description |
|---|---|
| \Zend_Feed_Exception | if unable to resolve Extension class |

setCache(\Zend_Cache_Core $cache) : voidSet the feed cache
| Name | Type | Description |
|---|---|---|
| $cache | \Zend_Cache_Core |

setHttpClient(\Zend_Http_Client $httpClient) : voidSet the HTTP client instance
| Name | Type | Description |
|---|---|---|
| $httpClient | \Zend_Http_Client |

setHttpMethodOverride(boolean $override = true) : voidToggle using POST instead of PUT and DELETE HTTP methods
| Name | Type | Description |
|---|---|---|
| $override | boolean | Whether to override PUT and DELETE. |

setPluginLoader(\Zend_Loader_PluginLoader_Interface $loader) : voidSet plugin loader for use with Extensions
| Name | Type | Description |
|---|---|---|
| $loader | \Zend_Loader_PluginLoader_Interface |