====== render ====== {#JAPI Joomla.Framework Document JDocumentRendererRSS::render #} Renders the feed. Extracts the data from the document object and wraps it into RSS format feed markup. ===== Syntax ===== string render () ===== Examples ===== $feedDoc =& JDocument::getInstance( 'feed' ); $feedDoc->syndicationURL = 'http://example.com/feed.php'; $feedDoc->copyright = 'Copyleft(C)'; $feedDoc->editor = 'Feed Editor'; $feedDoc->title = 'Feed Title'; $feedDoc->subtitle = 'Feed sub title'; $item = new JFeedItem(); $item->title = 'Item Title'; $item->link = 'http://example.com/index.php?item_title'; $item->description = 'About the Item'; $item->date = mktime(); $item->author = 'Joe Blow'; $item->category = 'General Category'; $feedDoc->addItem( $item ); jimport( 'joomla.document.renderer' ); jimport( 'joomla.document.feed.renderer.rss' ); $renderer = new JDocumentRendererRSS( $feedDoc ); echo $renderer->render(); might produce: Feed Title Sat, 26 May 2007 03:09:45 -0400 Joomla! 1.5 - Open Source Content Management en Copyleft(C) Feed Editor Item Title http://example.com/index.php?item_title Joe Blow General Category Sat, 26 May 2007 03:09:45 -0400 ---- ~~DISCUSSION~~