Actions

API15

JDocumentFeed/addItem

From Joomla! Documentation

< API15:JDocumentFeed
Revision as of 12:33, 25 March 2010 by Doxiki (Talk | contribs)

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Adds an JFeedItem to the feed.

[Edit Descripton]

Description:JDocumentFeed/addItem

Syntax

addItem(&$item)
Parameter Name Default Value Description
&$item $item The feeditem to add to the feed. public

Defined in

libraries/joomla/document/feed/feed.php

Importing

jimport( 'joomla.document.feed.feed' );

Source Body

function addItem( &$item )
{
        $item->source = $this->link;
        $this->items[] = $item;
}

[Edit See Also] SeeAlso:JDocumentFeed/addItem

Examples

<CodeExamplesForm />