Feed/Reader.php
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_Feed_Reader
- Version
- $Id$
Package: 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'))static
Default valuearray('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



$_httpConditionalGet = falsestatic
Default valuefalseDetails- Type
- n/a



boolean $_httpMethodOverride = falsestaticOverride HTTP PUT and DELETE request methods?
Default valuefalseDetails- Type
- boolean



$_pluginLoader = nullstatic
Default valuenullDetails- Type
- n/a



$_prefixPaths = array()static
Default valuearray()Details- Type
- n/a
Methods



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



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



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


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


importFile(string $filename) : \Zend_Feed_Reader_FeedInterfacestaticImports a feed from a file located at $filename.
Parameters| Name | Type | Description |
|---|
| $filename | string | |
|---|
ReturnsThrows 


isRegistered(string $extensionName) : booleanstaticIs a given named Extension registered?
Parameters| Name | Type | Description |
|---|
| $extensionName | string | |
|---|
Returns 


registerExtension(string $name) : voidstaticRegister an Extension by name
Parameters| Name | Type | Description |
|---|
| $name | string | |
|---|
Throws 


setHttpClient(\Zend_Http_Client $httpClient) : voidstaticSet the HTTP client instance
Sets the HTTP client object to use for retrieving the feeds.
Parameters


setHttpMethodOverride(boolean $override = true) : voidstaticToggle using POST instead of PUT and DELETE HTTP methods
Some feed implementations do not accept PUT and DELETE HTTP
methods, or they can't be used because of proxies or other
measures. This allows turning on using POST where PUT and
DELETE would normally be used; in addition, an
X-Method-Override header will be sent with a value of PUT or
DELETE as appropriate.
Parameters| Name | Type | Description |
|---|
| $override | boolean | Whether to override PUT and DELETE. |
|---|



useHttpConditionalGet(bool $bool = true) : voidstaticSet the flag indicating whether or not to use HTTP conditional GET
Parameters| Name | Type | Description |
|---|
| $bool | bool | |
|---|