Inheritances
Files
Overview
FRAMES
NO FRAMES

Class Zend_Feed_Builder_Entry

ArrayObject
|
Zend_Feed_Builder_Entry
Zend_Feed
|- class Zend_Feed_Builder_Entry extends ArrayObject
Defined in line 35 of file Feed/Builder/Entry.php.
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
CategoryZend
PackageZend_Feed
CopyrightCopyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
Licensehttp://framework.zend.com/license/new-bsd New BSD License

Overview

Class constants
Inherited from ArrayObject : STD_PROP_LIST ARRAY_AS_PROPS
Instance methods__construct() __get() __isset() __set() __unset() addCategory() addEnclosure() setAuthor() setCategories() setCommentsRssUrl() setCommentsUrl() setContent() setEnclosures() setId() setLastUpdate() setSource()
Inherited from ArrayObject : offsetExists() offsetGet() offsetSet() offsetUnset() append() getArrayCopy() count() getFlags() setFlags() asort() ksort() uasort() uksort() natsort() natcasesort() getIterator() exchangeArray() setIteratorClass() getIteratorClass()

Summary

Instance methods
+ __construct() Create a new builder entry
+ __get() Read only properties accessor
+ __isset() Isset accessor
+ __set() Write properties accessor
+ __unset() Unset accessor
+ addCategory() Add a category to the entry
+ addEnclosure() Add an enclosure to the entry
+ setAuthor() Sets the author of the entry
+ setCategories() Sets the categories of the entry
+ setCommentsRssUrl() Sets the url of the comments feed link
+ setCommentsUrl() Sets the url of the commented page associated to the entry
+ setContent() Sets the full html content of the entry
+ setEnclosures() Sets the enclosures of the entry
+ setId() Sets the id/guid of the entry
+ setLastUpdate() Timestamp of the update date
+ setSource() Defines a reference to the original source

Details

Instance methods

__construct()
public function __construct( $title
$link
$description
)
Create a new builder entry
Parameters
string $title
string $link
string $description short version of the entry, no html
Returns void
Overrides ArrayObject->__construct()
__get()
public function __get( $name)
Read only properties accessor
Parameters
string $name property to read
Returns mixed
__isset()
public function __isset( $key)
Isset accessor
Parameters
string $key
Returns boolean
__set()
public function __set( $name
$value
)
Write properties accessor
Parameters
string $name name of the property to set
mixed $value value to set
Returns void
__unset()
public function __unset( $key)
Unset accessor
Parameters
string $key
Returns void
addCategory()
public function addCategory( array $category)
Add a category to the entry
Parameters
array $category
addEnclosure()
public function addEnclosure( $url
$type = ''
$length = ''
)
Add an enclosure to the entry
Parameters
string $url
string $type
string $length
setAuthor()
public function setAuthor( $author)
Sets the author of the entry
Parameters
string $author
setCategories()
public function setCategories( array $categories)
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
array $categories
setCommentsRssUrl()
public function setCommentsRssUrl( $commentRss)
Sets the url of the comments feed link
Parameters
string $commentRss
setCommentsUrl()
public function setCommentsUrl( $comments)
Sets the url of the commented page associated to the entry
Parameters
string $comments
setContent()
public function setContent( $content)
Sets the full html content of the entry
Parameters
string $content
setEnclosures()
public function setEnclosures( array $enclosures)
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
array $enclosures
setId()
public function setId( $id)
Sets the id/guid of the entry
Parameters
string $id
setLastUpdate()
public function setLastUpdate( $lastUpdate)
Timestamp of the update date
Parameters
int $lastUpdate
setSource()
public function setSource( $title
$url
)
Defines a reference to the original source
Parameters
string $title
string $url