JDocumentFeed/addItem: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Adds an JFeedItem to the feed.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</no... |
No edit summary |
||
Line 17: | Line 17: | ||
!Description | !Description | ||
|- | |- | ||
| | | &$item | ||
| | | | ||
| $item The feeditem to add to the feed. public | | $item The feeditem to add to the feed. public |
Revision as of 10:08, 30 March 2010
Description
Adds an JFeedItem to the feed.
Template: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] Template:SeeAlso:JDocumentFeed/addItem
Examples
<CodeExamplesForm />