Public Member Functions | |
__construct () | |
count () | |
getCollection () | |
getReviewLink () | |
getProductLink () | |
dateFormat ($date) | |
getAllReviewsUrl () | |
getReviewUrl ($id) | |
Protected Member Functions | |
_getCollection () |
Definition at line 35 of file Recent.php.
__construct | ( | ) |
Constructor
By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes
Reimplemented from Varien_Object.
Definition at line 37 of file Recent.php.
00038 { 00039 parent::__construct(); 00040 $this->setTemplate('review/customer/list.phtml'); 00041 00042 $this->_collection = Mage::getModel('review/review')->getProductCollection(); 00043 00044 $this->_collection 00045 ->addStoreFilter(Mage::app()->getStore()->getId()) 00046 ->addCustomerFilter(Mage::getSingleton('customer/session')->getCustomerId()) 00047 ->setDateOrder() 00048 ->setPageSize(5) 00049 ->load() 00050 ->addReviewSummary(); 00051 }
_getCollection | ( | ) | [protected] |
count | ( | ) |
dateFormat | ( | $ | date | ) |
Definition at line 78 of file Recent.php.
00079 { 00080 return $this->formatDate($date, Mage_Core_Model_Locale::FORMAT_TYPE_SHORT); 00081 }
getAllReviewsUrl | ( | ) |
Definition at line 83 of file Recent.php.
00084 { 00085 return Mage::getUrl('review/customer'); 00086 }
getCollection | ( | ) |
getProductLink | ( | ) |
Definition at line 73 of file Recent.php.
00074 { 00075 return Mage::getUrl('catalog/product/view/'); 00076 }
getReviewLink | ( | ) |
Definition at line 68 of file Recent.php.
00069 { 00070 return Mage::getUrl('review/customer/view/'); 00071 }
getReviewUrl | ( | $ | id | ) |
Definition at line 88 of file Recent.php.
00089 { 00090 return Mage::getUrl('review/customer/view', array('id' => $id)); 00091 }