Feed/Writer/Feed/FeedAbstract.php

Show: PublicProtectedPrivateinherited
Table of Contents
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_Writer  
Version
$Id$  

\Zend_Feed_Writer_Feed_FeedAbstract

Package: Zend_Feed_Writer
Children
\Zend_Feed_Writer_Feed
\Zend_Feed_Writer_Source
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedarray $_data = array()
Contains all Feed level date to append in feed output
Default valuearray()Details
Type
array
>VPropertyprotectedstring $_type = null
Holds the value "atom" or "rss" depending on the feed type set when when last exported.
Default valuenullDetails
Type
string

Methods

methodpublic__call(string $method, array $args) : mixed

Method overloading: call given method on first extension implementing it

Parameters
NameTypeDescription
$methodstring
$argsarray
Returns
TypeDescription
mixed
Throws
ExceptionDescription
\Zend_Feed_Exceptionif no extensions implements the method
methodpublic__construct() : void

Constructor: Primarily triggers the registration of core extensions and loads those appropriate to this data container.

methodprotected_loadExtensions() : void

Load extensions from Zend_Feed_Writer

methodprotected_validateTagUri(string $id) : bool

Validate a URI using the tag scheme (RFC 4151)

Parameters
NameTypeDescription
$idstring
Returns
TypeDescription
bool
methodpublicaddAuthor( $name,  $email = null,  $uri = null) : string | null

Set a single author

Parameters
NameTypeDescription
$name
$email
$uri
Returns
TypeDescription
string | null
methodpublicaddAuthors( $authors) : array

Set an array with feed authors

Parameters
NameTypeDescription
$authors
Returns
TypeDescription
array
methodpublicaddCategories(array $categories) : void

Set an array of feed categories

Parameters
NameTypeDescription
$categoriesarray
methodpublicaddCategory(string $category) : void

Add a feed category

Parameters
NameTypeDescription
$categorystring
methodpublicaddHub(string $url) : void

Add a Pubsubhubbub hub endpoint URL

Parameters
NameTypeDescription
$urlstring
methodpublicaddHubs(array $urls) : void

Add Pubsubhubbub hub endpoint URLs

Parameters
NameTypeDescription
$urlsarray
methodpublicgetAuthor(int $index = 0) : string | null

Get a single author

Parameters
NameTypeDescription
$indexint
Returns
TypeDescription
string | null
methodpublicgetAuthors() : array

Get an array with feed authors

Returns
TypeDescription
array
methodpublicgetBaseUrl() : string | null

Get the feed's base url

Returns
TypeDescription
string | null
methodpublicgetCategories() : string | null

Get the feed categories

Returns
TypeDescription
string | null
methodpublicgetCopyright() : string | null

Get the copyright entry

Returns
TypeDescription
string | null
methodpublicgetDateCreated() : string | null

Get the feed creation date

Returns
TypeDescription
string | null
methodpublicgetDateModified() : string | null

Get the feed modification date

Returns
TypeDescription
string | null
methodpublicgetDescription() : string | null

Get the feed description

Returns
TypeDescription
string | null
methodpublicgetEncoding() : string | null

Get the feed character encoding

Returns
TypeDescription
string | null
methodpublicgetFeedLinks() : string | null

Get a link to the XML feed

Returns
TypeDescription
string | null
methodpublicgetGenerator() : string | null

Get the feed generator entry

Returns
TypeDescription
string | null
methodpublicgetHubs() : string | null

Get the URLs used as Pubsubhubbub hubs endpoints

Returns
TypeDescription
string | null
methodpublicgetIcon() : array

Get the feed icon URI

Returns
TypeDescription
array
methodpublicgetId() : string | null

Get the feed ID

Returns
TypeDescription
string | null
methodpublicgetImage() : array

Get the feed image URI

Returns
TypeDescription
array
methodpublicgetLanguage() : string | null

Get the feed language

Returns
TypeDescription
string | null
methodpublicgetLastBuildDate() : string | null

Get the feed last-build date

Returns
TypeDescription
string | null
methodpublicgetLink() : string | null

Get a link to the HTML source

Returns
TypeDescription
string | null
methodpublicgetTitle() : string | null

Get the feed title

Returns
TypeDescription
string | null
methodpublicgetType() : string

Retrieve the current or last feed type exported.

Returns
TypeDescription
stringValue will be "rss" or "atom"
methodpublicremove(string $name) : void

Unset a specific data point

Parameters
NameTypeDescription
$namestring
methodpublicreset() : void

Resets the instance and deletes all data

methodpublicsetBaseUrl(string $url) : void

Set the feed's base URL

Parameters
NameTypeDescription
$urlstring
methodpublicsetCopyright( $copyright) : string | null

Set the copyright entry

Parameters
NameTypeDescription
$copyright
Returns
TypeDescription
string | null
methodpublicsetDateCreated( $date = null) : void

Set the feed creation date

Parameters
NameTypeDescription
$date
methodpublicsetDateModified( $date = null) : void

Set the feed modification date

Parameters
NameTypeDescription
$date
methodpublicsetDescription( $description) : string | null

Set the feed description

Parameters
NameTypeDescription
$description
Returns
TypeDescription
string | null
methodpublicsetEncoding(string $encoding) : void

Set the feed character encoding

Parameters
NameTypeDescription
$encodingstring
methodpublicsetFeedLink( $link,  $type) : string | null

Set a link to an XML feed for any feed type/version

Parameters
NameTypeDescription
$link
$type
Returns
TypeDescription
string | null
methodpublicsetGenerator( $name,  $version = null,  $uri = null) : string | null

Set the feed generator entry

Parameters
NameTypeDescription
$name
$version
$uri
Returns
TypeDescription
string | null
methodpublicsetIcon(array $data) : void

Set a feed icon (URI at minimum). Parameter is a single array with the required key 'uri'. Only 'uri' is required and used for Atom rendering.

RSS does not support an Icon tag except via Atom 1.0 as an extension.
Parameters
NameTypeDescription
$dataarray
methodpublicsetId(string $id) : void

Set the feed ID - URI or URN (via PCRE pattern) supported

Parameters
NameTypeDescription
$idstring
methodpublicsetImage(array $data) : void

Set a feed image (URI at minimum). Parameter is a single array with the required key 'uri'. When rendering as RSS, the required keys are 'uri', 'title' and 'link'. RSS also specifies three optional parameters 'width', 'height' and 'description'. Only 'uri' is required and used for Atom rendering.

Parameters
NameTypeDescription
$dataarray
methodpublicsetLanguage( $language) : string | null

Set the feed language

Parameters
NameTypeDescription
$language
Returns
TypeDescription
string | null
methodpublicsetLastBuildDate( $date = null) : void

Set the feed last-build date. Ignored for Atom 1.0.

Parameters
NameTypeDescription
$date
methodpublicsetLink(string $link) : void

Set a link to the HTML source

Parameters
NameTypeDescription
$linkstring
methodpublicsetTitle( $title) : string | null

Set the feed title

Parameters
NameTypeDescription
$title
Returns
TypeDescription
string | null
methodpublicsetType(string $type) : void

Set the current feed type being exported to "rss" or "atom". This allows other objects to gracefully choose whether to execute or not, depending on their appropriateness for the current type, e.g. renderers.

Parameters
NameTypeDescription
$typestring
Documentation was generated by phpDocumentor 2.2.0 .