Feed/Builder/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 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  
Version
$Id$  

\Zend_Feed_Builder_Entry

Package: Zend_Feed
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
Parent(s)
\ArrayObject
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

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

Create a new builder entry

Parameters
NameTypeDescription
$titlestring
$linkstring
$descriptionstring

short version of the entry, no html

methodpublic__get(string $name) : mixed

Read only properties accessor

Parameters
NameTypeDescription
$namestring

property to read

Returns
TypeDescription
mixed
methodpublic__isset(string $key) : boolean

Isset accessor

Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
boolean
methodpublic__set(string $name, mixed $value) : void

Write properties accessor

Parameters
NameTypeDescription
$namestring

name of the property to set

$valuemixed

value to set

methodpublic__unset(string $key) : void

Unset accessor

Parameters
NameTypeDescription
$keystring
methodpublicaddCategory(array $category) : \Zend_Feed_Builder_Entry

Add a category to the entry

Parameters
NameTypeDescription
$categoryarray

see Zend_Feed_Builder_Entry::setCategories() for format

Returns
TypeDescription
\Zend_Feed_Builder_Entry
Throws
ExceptionDescription
\Zend_Feed_Builder_Exception
methodpublicaddEnclosure(string $url, string $type = '', string $length = '') : \Zend_Feed_Builder_Entry

Add an enclosure to the entry

Parameters
NameTypeDescription
$urlstring
$typestring
$lengthstring
Returns
TypeDescription
\Zend_Feed_Builder_Entry
methodpublicsetAuthor(string $author) : \Zend_Feed_Builder_Entry

Sets the author of the entry

Parameters
NameTypeDescription
$authorstring
Returns
TypeDescription
\Zend_Feed_Builder_Entry
methodpublicsetCategories(array $categories) : \Zend_Feed_Builder_Entry

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

Parameters
NameTypeDescription
$categoriesarray
Returns
TypeDescription
\Zend_Feed_Builder_Entry
methodpublicsetCommentsRssUrl(string $commentRss) : \Zend_Feed_Builder_Entry

Sets the url of the comments feed link

Parameters
NameTypeDescription
$commentRssstring
Returns
TypeDescription
\Zend_Feed_Builder_Entry
methodpublicsetCommentsUrl(string $comments) : \Zend_Feed_Builder_Entry

Sets the url of the commented page associated to the entry

Parameters
NameTypeDescription
$commentsstring
Returns
TypeDescription
\Zend_Feed_Builder_Entry
methodpublicsetContent(string $content) : \Zend_Feed_Builder_Entry

Sets the full html content of the entry

Parameters
NameTypeDescription
$contentstring
Returns
TypeDescription
\Zend_Feed_Builder_Entry
methodpublicsetEnclosures(array $enclosures) : \Zend_Feed_Builder_Entry

Sets the enclosures of the entry Format of the array: 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 )

Parameters
NameTypeDescription
$enclosuresarray
Returns
TypeDescription
\Zend_Feed_Builder_Entry
Throws
ExceptionDescription
\Zend_Feed_Builder_Exception
methodpublicsetId(string $id) : \Zend_Feed_Builder_Entry

Sets the id/guid of the entry

Parameters
NameTypeDescription
$idstring
Returns
TypeDescription
\Zend_Feed_Builder_Entry
methodpublicsetLastUpdate(int $lastUpdate) : \Zend_Feed_Builder_Entry

Timestamp of the update date

Parameters
NameTypeDescription
$lastUpdateint
Returns
TypeDescription
\Zend_Feed_Builder_Entry
methodpublicsetSource(string $title, string $url) : \Zend_Feed_Builder_Entry

Defines a reference to the original source

Parameters
NameTypeDescription
$titlestring
$urlstring
Returns
TypeDescription
\Zend_Feed_Builder_Entry
Documentation was generated by phpDocumentor 2.2.0 .