API Documentation

Feed/Builder/Entry.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Feed
version
$Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Feed_Builder_Entry

Description

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.

Zend_Feed_Builder_Entry

Extends from
ArrayObject
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Feed
Methods
__construct
__get
__set
__isset
__unset
setAuthor
setId
setContent
setLastUpdate
setCommentsUrl
setCommentsRssUrl
setSource
setCategories
addCategory
setEnclosures
addEnclosure

Description

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

Methods

__construct

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

Create a new builder entry

Arguments
$title
string
$link
string
$description
string
short version of the entry, no html
Details
visibility
public
final
false
static
false

__get

__get( string $name ) : mixed

Read only properties accessor

Arguments
$name
string
property to read
Output
mixed
Details
visibility
public
final
false
static
false

__isset

__isset( string $key ) : boolean

Isset accessor

Arguments
$key
string
Output
boolean
Details
visibility
public
final
false
static
false

__set

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

Write properties accessor

Arguments
$name
string
name of the property to set
$value
mixed
value to set
Details
visibility
public
final
false
static
false

__unset

__unset( string $key ) : void

Unset accessor

Arguments
$key
string
Details
visibility
public
final
false
static
false

addCategory

addCategory( array $category ) : Zend_Feed_Builder_Entry

Add a category to the entry

Arguments
$category
array
see Zend_Feed_Builder_Entry::setCategories() for format
Details
visibility
public
final
false
static
false
throws

addEnclosure

addEnclosure( string $url, string $type, string $length ) : Zend_Feed_Builder_Entry

Add an enclosure to the entry

Arguments
$url
string
$type
string
$length
string
Details
visibility
public
final
false
static
false

setAuthor

setAuthor( string $author ) : Zend_Feed_Builder_Entry

Sets the author of the entry

Arguments
$author
string
Details
visibility
public
final
false
static
false

setCategories

setCategories( array $categories ) : 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>

Arguments
$categories
array
Details
visibility
public
final
false
static
false

setCommentsRssUrl

setCommentsRssUrl( string $commentRss ) : Zend_Feed_Builder_Entry

Sets the url of the comments feed link

Arguments
$commentRss
string
Details
visibility
public
final
false
static
false

setCommentsUrl

setCommentsUrl( string $comments ) : Zend_Feed_Builder_Entry

Sets the url of the commented page associated to the entry

Arguments
$comments
string
Details
visibility
public
final
false
static
false

setContent

setContent( string $content ) : Zend_Feed_Builder_Entry

Sets the full html content of the entry

Arguments
$content
string
Details
visibility
public
final
false
static
false

setEnclosures

setEnclosures( array $enclosures ) : 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>

Arguments
$enclosures
array
Details
visibility
public
final
false
static
false
throws

setId

setId( string $id ) : Zend_Feed_Builder_Entry

Sets the id/guid of the entry

Arguments
$id
string
Details
visibility
public
final
false
static
false

setLastUpdate

setLastUpdate( int $lastUpdate ) : Zend_Feed_Builder_Entry

Timestamp of the update date

Arguments
$lastUpdate
int
Details
visibility
public
final
false
static
false

setSource

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

Defines a reference to the original source

Arguments
$title
string
$url
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.