Mage_Review_Block_Product_View_List Class Reference

Inheritance diagram for Mage_Review_Block_Product_View_List:

Mage_Review_Block_Product_View Mage_Catalog_Block_Product_View Mage_Catalog_Block_Product_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getProductId ()
 getReviewUrl ($id)

Protected Member Functions

 _prepareLayout ()
 _beforeToHtml ()

Protected Attributes

 $_forceHasOptions = false


Detailed Description

Definition at line 34 of file List.php.


Member Function Documentation

_beforeToHtml (  )  [protected]

Before rendering html, but after trying to load cache

Returns:
Mage_Core_Block_Abstract

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

Returns:
Mage_Core_Block_Abstract

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     }


Member Data Documentation

$_forceHasOptions = false [protected]

Definition at line 36 of file List.php.


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

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