
Public Member Functions | |
| getProductId () | |
| getReviewUrl ($id) | |
Protected Member Functions | |
| _prepareLayout () | |
| _beforeToHtml () | |
Protected Attributes | |
| $_forceHasOptions = false | |
Definition at line 34 of file List.php.
| _beforeToHtml | ( | ) | [protected] |
Before rendering html, but after trying to load cache
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 55 of file List.php.
00056 { 00057 $this->getReviewsCollection() 00058 ->load() 00059 ->addRateVotes(); 00060 return parent::_beforeToHtml(); 00061 }
| _prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Catalog_Block_Product_View.
Definition at line 43 of file List.php.
00044 { 00045 parent::_prepareLayout(); 00046 00047 if ($toolbar = $this->getLayout()->getBlock('product_review_list.toolbar')) { 00048 $toolbar->setCollection($this->getReviewsCollection()); 00049 $this->setChild('toolbar', $toolbar); 00050 } 00051 00052 return $this; 00053 }
| getProductId | ( | ) |
Definition at line 38 of file List.php.
00039 { 00040 return Mage::registry('product')->getId(); 00041 }
| getReviewUrl | ( | $ | id | ) |
Definition at line 63 of file List.php.
00064 { 00065 return Mage::getUrl('*/*/view', array('id' => $id)); 00066 }
1.5.8