Feed/Writer/Entry.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 [email protected] 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_Entry

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

Properties

>VPropertyprotectedarray $_data = array()
Internal array containing all data associated with this entry or item.
Default valuearray()Details
Type
array
>VPropertyprotectedarray $_extensions = array()
Registered extensions
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

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 entry categories

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

Add a entry category

Parameters
NameTypeDescription
$categorystring
methodpubliccreateSource() : \Zend_Feed_Writer_Source

Creates a new Zend_Feed_Writer_Source data container for use. This is NOT added to the current feed automatically, but is necessary to create a container with some initial values preset based on the current feed data.

Returns
TypeDescription
\Zend_Feed_Writer_Source
methodpublicgetAuthors() : array

Get an array with feed authors

Returns
TypeDescription
array
methodpublicgetCategories() : string | null

Get the entry categories

Returns
TypeDescription
string | null
methodpublicgetCommentCount() : integer

Get the number of comments/replies for current entry

Returns
TypeDescription
integer
methodpublicgetCommentFeedLinks() : string

Returns an array of URIs pointing to a feed of all comments for this entry where the array keys indicate the feed type (atom, rss or rdf).

Returns
TypeDescription
string
methodpublicgetCommentLink() : string

Returns a URI pointing to the HTML page where comments can be made on this entry

Returns
TypeDescription
string
methodpublicgetContent() : string

Get the entry content

Returns
TypeDescription
string
methodpublicgetCopyright() : string

Get the entry copyright information

Returns
TypeDescription
string
methodpublicgetDateCreated() : string

Get the entry creation date

Returns
TypeDescription
string
methodpublicgetDateModified() : string

Get the entry modification date

Returns
TypeDescription
string
methodpublicgetDescription() : string

Get the entry description

Returns
TypeDescription
string
methodpublicgetEnclosure() : array

Retrieve an array of all enclosures to be added to entry.

Returns
TypeDescription
array
methodpublicgetEncoding() : string | null

Get the feed character encoding

Returns
TypeDescription
string | null
methodpublicgetExtension(string $name) : object

Return an Extension object with the matching name (postfixed with _Entry)

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
object
methodpublicgetExtensions() : array

Get registered extensions

Returns
TypeDescription
array
methodpublicgetId() : string

Get the entry ID

Returns
TypeDescription
string
methodpublicgetLink() : string | null

Get a link to the HTML source

Returns
TypeDescription
string | null
methodpublicgetLinks() : array

Get all links

Returns
TypeDescription
array
methodpublicgetSource() : \Zend_Feed_Writer_Source

Returns
TypeDescription
\Zend_Feed_Writer_Source
methodpublicgetTitle() : string

Get the entry title

Returns
TypeDescription
string
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
methodpublicsetCommentCount( $count) : string | null

Set the number of comments associated with this entry

Parameters
NameTypeDescription
$count
Returns
TypeDescription
string | null
methodpublicsetCommentFeedLink( $link) : string | null

Set a link to an XML feed for any comments associated with this entry

Parameters
NameTypeDescription
$link
Returns
TypeDescription
string | null
methodpublicsetCommentFeedLinks( $links) : string | null

Set a links to an XML feed for any comments associated with this entry.

Each link is an array with keys "uri" and "type", where type is one of: "atom", "rss" or "rdf".
Parameters
NameTypeDescription
$links
Returns
TypeDescription
string | null
methodpublicsetCommentLink( $link) : string | null

Set a link to a HTML page containing comments associated with this entry

Parameters
NameTypeDescription
$link
Returns
TypeDescription
string | null
methodpublicsetContent( $content) : string | null

Set the entry's content

Parameters
NameTypeDescription
$content
Returns
TypeDescription
string | null
methodpublicsetCopyright( $copyright) : string | null

Set the copyright entry

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

Set the feed creation date

Parameters
NameTypeDescription
$date
Returns
TypeDescription
string | null
methodpublicsetDateModified( $date = null) : string | null

Set the feed modification date

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

Set the feed description

Parameters
NameTypeDescription
$description
Returns
TypeDescription
string | null
methodpublicsetEnclosure( $enclosure) : void

Adds an enclosure to the entry. The array parameter may contain the keys 'uri', 'type' and 'length'. Only 'uri' is required for Atom, though the others must also be provided or RSS rendering (where they are required) will throw an Exception.

Parameters
NameTypeDescription
$enclosure
methodpublicsetEncoding( $encoding) : string | null

Set the feed character encoding

Parameters
NameTypeDescription
$encoding
Returns
TypeDescription
string | null
methodpublicsetId( $id) : string | null

Set the feed ID

Parameters
NameTypeDescription
$id
Returns
TypeDescription
string | null
methodpublicsetLink( $link) : string | null

Set a link to the HTML source of this entry

Parameters
NameTypeDescription
$link
Returns
TypeDescription
string | null
methodpublicsetSource(\Zend_Feed_Writer_Source $source) : void

Appends a Zend_Feed_Writer_Entry object representing a new entry/item the feed data container's internal group of entries.

Parameters
NameTypeDescription
$source\Zend_Feed_Writer_Source
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 .