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.
Feed utility class
Base Zend_Feed class, containing constants and the Zend_Http_Client instance accessor.
Zend_Http_Client $_httpClient = 'null'HTTP client object to use for retrieving feeds
Detailsboolean $_httpMethodOverride = 'false'Override HTTP PUT and DELETE request methods?
Detailsarray $_namespaces = 'array'
DetailsfindFeeds(
string $uri
)
:
arrayAttempts to find feeds at $uri referenced by <link ... /> tags. Returns an array of the feeds referenced at $uri.
DetailsgetHttpClient(
)
:
Zend_Http_Client_AbstractGets the HTTP client object. If none is set, a new Zend_Http_Client will be used.
DetailsgetHttpMethodOverride(
)
:
booleanGet the HTTP override state
Detailsimport(
string $uri
)
:
Zend_Feed_AbstractImports a feed located at $uri.
DetailsimportArray(
array $data, string $format
=
atom
)
:
Zend_Feed_AbstractConstruct a new Zend_Feed_Abstract object from a custom array
DetailsimportBuilder(
Zend_Feed_Builder_Interface $builder, string $format
=
atom
)
:
Zend_Feed_AbstractConstruct a new Zend_Feed_Abstract object from a Zend_Feed_Builder_Interface data source
DetailsimportFile(
string $filename
)
:
Zend_Feed_AbstractImports a feed from a file located at $filename.
DetailsimportString(
string $string
)
:
Zend_Feed_AbstractImports a feed represented by $string.
DetailslookupNamespace(
$prefix
)
:
stringGet the full version of a namespace prefix
Looks up a prefix (atom:, etc.) in the list of registered namespaces and returns the full namespace URI if available. Returns the prefix, unmodified, if it's not registered.
DetailsregisterNamespace(
string $prefix, string $namespaceURI
)
:
voidAdd a namespace and prefix to the registered list
Takes a prefix and a full namespace URI and adds them to the list of registered namespaces for use by Zend_Feed::lookupNamespace().
DetailssetHttpClient(
Zend_Http_Client $httpClient
)
:
voidSet the HTTP client instance
Sets the HTTP client object to use for retrieving the feeds.
DetailssetHttpMethodOverride(
boolean $override
=
true
)
:
voidToggle 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.
Details