Support Joomla!

references:joomla.framework:document:jdocumentfeed-additem

Table of Contents

addItem

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Document Class JDocumentFeed Method addItem Reference addItem() Never Work in Progress

Adds a JFeedItem to the feed.

Syntax

void addItem ( &$item )

&$item JFeedItem is an object of type JFeedItem that should be added to the feed.

Examples

Example

$feedDoc =& JDocument::getInstance( 'feed' );

$item = new JFeedItem();
$item->title            = 'Item Title';
$item->link             = 'http://example.com/feed.php';
$item->description      = 'About the Item';
$item->date             = mktime();
$item->author           = 'Joe Blow';
$item->category         = 'General Category';

$feedDoc->addItem( $item );
$feedDoc->render();

Discussion

Full name:
E-Mail:
 
references/joomla.framework/document/jdocumentfeed-additem.txt (547 views) · Last modified: 2007/08/15 15:04