API16

JDocumentFeed/addItem

From Joomla! Documentation

< API16:JDocumentFeed

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Adds an JFeedItem to the feed.


<! removed transcluded page call, red link never existed >

Syntax[edit]

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

Defined in[edit]

libraries/joomla/document/feed/feed.php

Importing[edit]

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

Source Body[edit]

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


<! removed transcluded page call, red link never existed >

Examples[edit]

Code Examples[edit]