Feed Class Reference

List of all members.

Public Member Functions

 Feed ($title, $link, $description, $pubDate, $generator=null, $type=null)
 addItem ($feedItem)
 render ($type=null)


Detailed Description

The Feed class describes a site syndication feed. A type can be specified to show which type of feed to render (RSS2 is default)

Definition at line 21 of file feed-creator.php.


Member Function Documentation

Feed::Feed ( title,
link,
description,
pubDate,
generator = null,
type = null 
)

Constructor a new instance of the Feed class

Parameters:
title The title of the page the feed syndicates
link The URL of the syndicated page
description A short description of the syndicated page
pubDate The date this feed was last published (this should probably be the date of the most recent entry)
generator The name of the feed's generator. Defaults to Travelsized Feeds
type The type of feed to generate. Defaults to RSS2
Returns:
A new instance of the Feed class

Definition at line 44 of file feed-creator.php.

References description, and title.

Feed::addItem ( feedItem  ) 

Adds a new item to the feed

Parameters:
feedItem The item to add to the feed (instance of FeedItem)

Definition at line 62 of file feed-creator.php.

Feed::render ( type = null  ) 

Renders the feed

Parameters:
type Set a new type and render using that
Returns:
The rendered feed according to the set type

Definition at line 74 of file feed-creator.php.

References $renderedContent.


The documentation for this class was generated from the following file:

Generated on Sun Oct 26 20:33:15 2008 for The Travelsized Content Management System by  doxygen 1.5.5