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 = false
static
Default valuefalse
Details- Type
- n/a



boolean $_httpMethodOverride = false
staticOverride HTTP PUT and DELETE request methods?
Default valuefalse
Details- Type
- boolean



$_pluginLoader = null
static
Default valuenull
Details- Type
- n/a



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



addPrefixPath(string $prefix, string $path) : void
staticAdd prefix path for loading Extensions
ParametersName | Type | Description |
---|
$prefix | string | |
---|
$path | string | |
---|



addPrefixPaths(array $spec) : void
staticAdd multiple Extension prefix paths at once
ParametersName | Type | Description |
---|
$spec | array | |
---|



arrayUnique( $array) : array
staticUtility method to apply array_unique operation to a multidimensional
array.
ParametersName | Type | Description |
---|
$array | | |
---|
Returns 


import( $uri, string $etag = null, string $lastModified = null) : \Zend_Feed_Reader_FeedInterface
staticImport a feed by providing a URL
ParametersName | 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_FeedInterface
staticImports a feed from a file located at $filename.
ParametersName | Type | Description |
---|
$filename | string | |
---|
ReturnsThrows 


isRegistered(string $extensionName) : boolean
staticIs a given named Extension registered?
ParametersName | Type | Description |
---|
$extensionName | string | |
---|
Returns 


registerExtension(string $name) : void
staticRegister an Extension by name
ParametersName | Type | Description |
---|
$name | string | |
---|
Throws 


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


setHttpMethodOverride(boolean $override = true) : void
staticToggle 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.
ParametersName | Type | Description |
---|
$override | boolean | Whether to override PUT and DELETE. |
---|



useHttpConditionalGet(bool $bool = true) : void
staticSet the flag indicating whether or not to use HTTP conditional GET
ParametersName | Type | Description |
---|
$bool | bool | |
---|