Public Member Functions | |
count () | |
getToolbarHtml () | |
getCollection () | |
getReviewLink () | |
getProductLink () | |
dateFormat ($date) | |
Protected Member Functions | |
_construct () | |
_prepareLayout () | |
_getCollection () | |
_beforeToHtml () | |
Protected Attributes | |
$_collection |
Definition at line 35 of file List.php.
_beforeToHtml | ( | ) | [protected] |
Before rendering html, but after trying to load cache
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 93 of file List.php.
00094 { 00095 $this->_getCollection() 00096 ->load() 00097 ->addReviewSummary(); 00098 return parent::_beforeToHtml(); 00099 }
_construct | ( | ) | [protected] |
Internal constructor, that is called from real constructor
Please override this one instead of overriding real __construct constructor
Please override this one instead of overriding real __construct constructor
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 40 of file List.php.
00041 { 00042 $this->_collection = Mage::getModel('review/review')->getProductCollection(); 00043 $this->_collection 00044 ->addStoreFilter(Mage::app()->getStore()->getId()) 00045 ->addCustomerFilter(Mage::getSingleton('customer/session')->getCustomerId()) 00046 ->setDateOrder(); 00047 }
_getCollection | ( | ) | [protected] |
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 59 of file List.php.
00060 { 00061 $toolbar = $this->getLayout()->createBlock('page/html_pager', 'customer_review_list.toolbar') 00062 ->setCollection($this->_getCollection()); 00063 00064 $this->setChild('toolbar', $toolbar); 00065 return parent::_prepareLayout(); 00066 }
count | ( | ) |
dateFormat | ( | $ | date | ) |
Definition at line 88 of file List.php.
00089 { 00090 return $this->formatDate($date, Mage_Core_Model_Locale::FORMAT_TYPE_SHORT); 00091 }
getCollection | ( | ) |
getProductLink | ( | ) |
Definition at line 83 of file List.php.
00084 { 00085 return Mage::getUrl('catalog/product/view/'); 00086 }
getReviewLink | ( | ) |
Definition at line 78 of file List.php.
00079 { 00080 return Mage::getUrl('review/customer/view/'); 00081 }
getToolbarHtml | ( | ) |
Definition at line 54 of file List.php.
00055 { 00056 return $this->getChildHtml('toolbar'); 00057 }