Feed/Writer/Source.php

Show: inherited
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 [email protected] so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Feed_Writer  
Version
$Id: Source.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Feed_Writer_Source

Package: Zend\Feed\Writer

Parent(s)
\Zend_Feed_Writer_Feed_FeedAbstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotectedarray $_data = array()
inherited

Contains all Feed level date to append in feed output

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::$$_data
Default valuearray()Details
Type
array
Inherited_from
\Zend_Feed_Writer_Feed_FeedAbstract::$$_data  
Propertyprotectedstring $_type = null
inherited

Holds the value "atom" or "rss" depending on the feed type set when when last exported.

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::$$_type
Default valuenullDetails
Type
string
Inherited_from
\Zend_Feed_Writer_Feed_FeedAbstract::$$_type  

Methods

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

Method overloading: call given method on first extension implementing it

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::__call()
Parameters
Name Type Description
$method string
$args array
Returns
Type Description
mixed
Throws
Exception Description
\Zend_Feed_Exception if no extensions implements the method
methodpublic__construct() : void
inherited

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

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::__construct()
methodprotected_loadExtensions() : void
inherited

Load extensions from Zend_Feed_Writer

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::_loadExtensions()
methodprotected_validateTagUri(string $id) : bool
inherited

Validate a URI using the tag scheme (RFC 4151)

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::_validateTagUri()
Parameters
Name Type Description
$id string
Returns
Type Description
bool
methodpublicaddAuthor( $name,  $email = null,  $uri = null) : string | null
inherited

Set a single author

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::addAuthor()
Parameters
Name Type Description
$name
$email
$uri
Returns
Type Description
string | null
methodpublicaddAuthors( $authors) : array
inherited

Set an array with feed authors

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::addAuthors()
Parameters
Name Type Description
$authors
Returns
Type Description
array
methodpublicaddCategories(array $categories) : void
inherited

Set an array of feed categories

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::addCategories()
Parameters
Name Type Description
$categories array
methodpublicaddCategory(string $category) : void
inherited

Add a feed category

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::addCategory()
Parameters
Name Type Description
$category string
methodpublicaddHub(string $url) : void
inherited

Add a Pubsubhubbub hub endpoint URL

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::addHub()
Parameters
Name Type Description
$url string
methodpublicaddHubs(array $urls) : void
inherited

Add Pubsubhubbub hub endpoint URLs

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::addHubs()
Parameters
Name Type Description
$urls array
methodpublicgetAuthor(int $index = 0) : string | null
inherited

Get a single author

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getAuthor()
Parameters
Name Type Description
$index int
Returns
Type Description
string | null
methodpublicgetAuthors() : array
inherited

Get an array with feed authors

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getAuthors()
Returns
Type Description
array
methodpublicgetBaseUrl() : string | null
inherited

Get the feed's base url

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getBaseUrl()
Returns
Type Description
string | null
methodpublicgetCategories() : string | null
inherited

Get the feed categories

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getCategories()
Returns
Type Description
string | null
methodpublicgetCopyright() : string | null
inherited

Get the copyright entry

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getCopyright()
Returns
Type Description
string | null
methodpublicgetDateCreated() : string | null
inherited

Get the feed creation date

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getDateCreated()
Returns
Type Description
string | null
methodpublicgetDateModified() : string | null
inherited

Get the feed modification date

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getDateModified()
Returns
Type Description
string | null
methodpublicgetDescription() : string | null
inherited

Get the feed description

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getDescription()
Returns
Type Description
string | null
methodpublicgetEncoding() : string | null
inherited

Get the feed character encoding

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getEncoding()
Returns
Type Description
string | null
methodpublicgetFeedLinks() : string | null
inherited

Get a link to the XML feed

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getFeedLinks()
Returns
Type Description
string | null
methodpublicgetGenerator() : string | null
inherited

Get the feed generator entry

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getGenerator()
Returns
Type Description
string | null
methodpublicgetHubs() : string | null
inherited

Get the URLs used as Pubsubhubbub hubs endpoints

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getHubs()
Returns
Type Description
string | null
methodpublicgetIcon() : array
inherited

Get the feed icon URI

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getIcon()
Returns
Type Description
array
methodpublicgetId() : string | null
inherited

Get the feed ID

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getId()
Returns
Type Description
string | null
methodpublicgetImage() : array
inherited

Get the feed image URI

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getImage()
Returns
Type Description
array
methodpublicgetLanguage() : string | null
inherited

Get the feed language

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getLanguage()
Returns
Type Description
string | null
methodpublicgetLastBuildDate() : string | null
inherited

Get the feed last-build date

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getLastBuildDate()
Returns
Type Description
string | null
methodpublicgetLink() : string | null
inherited

Get a link to the HTML source

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getLink()
Returns
Type Description
string | null
methodpublicgetTitle() : string | null
inherited

Get the feed title

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getTitle()
Returns
Type Description
string | null
methodpublicgetType() : string
inherited

Retrieve the current or last feed type exported.

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::getType()
Returns
Type Description
string Value will be "rss" or "atom"
methodpublicremove(string $name) : void
inherited

Unset a specific data point

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::remove()
Parameters
Name Type Description
$name string
methodpublicreset() : void
inherited

Resets the instance and deletes all data

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::reset()
methodpublicsetBaseUrl(string $url) : void
inherited

Set the feed's base URL

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setBaseUrl()
Parameters
Name Type Description
$url string
methodpublicsetCopyright( $copyright) : string | null
inherited

Set the copyright entry

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setCopyright()
Parameters
Name Type Description
$copyright
Returns
Type Description
string | null
methodpublicsetDateCreated( $date = null) : void
inherited

Set the feed creation date

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setDateCreated()
Parameters
Name Type Description
$date

null|integer|Zend_Date

methodpublicsetDateModified( $date = null) : void
inherited

Set the feed modification date

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setDateModified()
Parameters
Name Type Description
$date

null|integer|Zend_Date

methodpublicsetDescription( $description) : string | null
inherited

Set the feed description

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setDescription()
Parameters
Name Type Description
$description
Returns
Type Description
string | null
methodpublicsetEncoding(string $encoding) : void
inherited

Set the feed character encoding

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setEncoding()
Parameters
Name Type Description
$encoding string
methodpublicsetFeedLink( $link,  $type) : string | null
inherited

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

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setFeedLink()
Parameters
Name Type Description
$link
$type
Returns
Type Description
string | null
methodpublicsetGenerator( $name,  $version = null,  $uri = null) : string | null
inherited

Set the feed generator entry

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setGenerator()
Parameters
Name Type Description
$name
$version
$uri
Returns
Type Description
string | null
methodpublicsetIcon(array $data) : void
inherited

Set a feed icon (URI at minimum).

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setIcon()

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
Name Type Description
$data array
methodpublicsetId(string $id) : void
inherited

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

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setId()
Parameters
Name Type Description
$id string
methodpublicsetImage(array $data) : void
inherited

Set a feed image (URI at minimum).

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setImage()

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
Name Type Description
$data array
methodpublicsetLanguage( $language) : string | null
inherited

Set the feed language

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setLanguage()
Parameters
Name Type Description
$language
Returns
Type Description
string | null
methodpublicsetLastBuildDate( $date = null) : void
inherited

Set the feed last-build date.

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setLastBuildDate()

Ignored for Atom 1.0.

Parameters
Name Type Description
$date

null|integer|Zend_Date

methodpublicsetLink(string $link) : void
inherited

Set a link to the HTML source

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setLink()
Parameters
Name Type Description
$link string
methodpublicsetTitle( $title) : string | null
inherited

Set the feed title

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setTitle()
Parameters
Name Type Description
$title
Returns
Type Description
string | null
methodpublicsetType(string $type) : void
inherited

Set the current feed type being exported to "rss" or "atom".

Inherited from: \Zend_Feed_Writer_Feed_FeedAbstract::setType()

This allows other objects to gracefully choose whether to execute or not, depending on their appropriateness for the current type, e.g. renderers.

Parameters
Name Type Description
$type string
Documentation was generated by phpDocumentor 2.0.0a8.