API16

API16:JDocumentFeed/addItem

From Joomla! Documentation

Description

Adds an JFeedItem to the feed.


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

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;
}


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

Examples

Code Examples