Mage_Rss_Model_Rss Class Reference

List of all members.

Public Member Functions

 _addHeader ($data=array())
 _addEntries ($entries)
 _addEntry ($entry)
 getFeedArray ()
 createRssXml ()

Protected Attributes

 $_feedArray = array()


Detailed Description

Definition at line 35 of file Rss.php.


Member Function Documentation

_addEntries ( entries  ) 

Definition at line 45 of file Rss.php.

00046     {
00047         $this->_feedArray['entries'] = $entries;
00048         return $this;
00049     }

_addEntry ( entry  ) 

Definition at line 51 of file Rss.php.

00052     {
00053         $this->_feedArray['entries'][] = $entry;
00054         return $this;
00055     }

_addHeader ( data = array()  ) 

Definition at line 39 of file Rss.php.

00040     {
00041         $this->_feedArray = $data;
00042         return $this;
00043     }

createRssXml (  ) 

Definition at line 62 of file Rss.php.

00063     {
00064         try {
00065             $rssFeedFromArray = Zend_Feed::importArray($this->getFeedArray(), 'rss');
00066             return $rssFeedFromArray->saveXML();
00067         } catch (Exception $e) {
00068             return Mage::helper('rss')->__('Error in processing xml. %s',$e->getMessage());
00069         }
00070     }

getFeedArray (  ) 

Definition at line 57 of file Rss.php.

00058     {
00059         return $this->_feedArray;
00060     }


Member Data Documentation

$_feedArray = array() [protected]

Definition at line 37 of file Rss.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:39 2009 for Magento by  doxygen 1.5.8