API16

API16:JDocumentFeed/addItem

From Joomla! Documentation

Revision as of 22:44, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Adds an JFeedItem to the feed. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</no...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Adds an JFeedItem to the feed.

[Edit Descripton]

Template:Description:JDocumentFeed/addItem

Syntax

addItem(&$item)
Parameter Name Default Value Description
$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] Template:SeeAlso:JDocumentFeed/addItem

Examples

<CodeExamplesForm />