An entry of a custom build feed

Classes implementing the Zend_Feed_Builder_Interface interface uses this class to describe an entry of a feed

category Zend
package Zend_Feed
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Create a new builder entry

__construct(string $title, string $link, string $description) : void

Parameters

$title

string

$link

string

$description

string

short version of the entry, no html

Read only properties accessor

__get(string $name) : mixed

Parameters

$name

string

property to read

Returns

mixed

Isset accessor

__isset(string $key) : boolean

Parameters

$key

string

Returns

boolean

Write properties accessor

__set(string $name, mixed $value) : void

Parameters

$name

string

name of the property to set

$value

mixed

value to set

Unset accessor

__unset(string $key) : void

Parameters

$key

string

Add a category to the entry

addCategory(array $category) : \Zend_Feed_Builder_Entry

Parameters

$category

array

see Zend_Feed_Builder_Entry::setCategories() for format

Exceptions

\Zend_Feed_Builder_Exception

Returns

\Zend_Feed_Builder_Entry

Add an enclosure to the entry

addEnclosure(string $url, string $type = '', string $length = '') : \Zend_Feed_Builder_Entry

Parameters

$url

string

$type

string

$length

string

Returns

\Zend_Feed_Builder_Entry

Sets the author of the entry

setAuthor(string $author) : \Zend_Feed_Builder_Entry

Parameters

$author

string

Returns

\Zend_Feed_Builder_Entry

Sets the categories of the entry Format of the array: <code> array( array( 'term' => 'first category label', 'scheme' => 'url that identifies a categorization scheme' // optional ), // second category and so one ) </code>

setCategories(array $categories) : \Zend_Feed_Builder_Entry

Parameters

$categories

array

Returns

\Zend_Feed_Builder_Entry

Sets the url of the comments feed link

setCommentsRssUrl(string $commentRss) : \Zend_Feed_Builder_Entry

Parameters

$commentRss

string

Returns

\Zend_Feed_Builder_Entry

Sets the url of the commented page associated to the entry

setCommentsUrl(string $comments) : \Zend_Feed_Builder_Entry

Parameters

$comments

string

Returns

\Zend_Feed_Builder_Entry

Sets the full html content of the entry

setContent(string $content) : \Zend_Feed_Builder_Entry

Parameters

$content

string

Returns

\Zend_Feed_Builder_Entry

Sets the enclosures of the entry Format of the array: <code> array( array( 'url' => 'url of the linked enclosure', 'type' => 'mime type of the enclosure' // optional 'length' => 'length of the linked content in octets' // optional ), // second enclosure and so one ) </code>

setEnclosures(array $enclosures) : \Zend_Feed_Builder_Entry

Parameters

$enclosures

array

Exceptions

\Zend_Feed_Builder_Exception

Returns

\Zend_Feed_Builder_Entry

Sets the id/guid of the entry

setId(string $id) : \Zend_Feed_Builder_Entry

Parameters

$id

string

Returns

\Zend_Feed_Builder_Entry

Timestamp of the update date

setLastUpdate(integer $lastUpdate) : \Zend_Feed_Builder_Entry

Parameters

$lastUpdate

integer

Returns

\Zend_Feed_Builder_Entry

Defines a reference to the original source

setSource(string $title, string $url) : \Zend_Feed_Builder_Entry

Parameters

$title

string

$url

string

Returns

\Zend_Feed_Builder_Entry