Mage_Review_Block_Product_View Class Reference

Inheritance diagram for 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 Mage_Review_Block_Product_View_List

List of all members.

Public Member Functions

 getReviewsSummaryHtml (Mage_Catalog_Model_Product $product, $templateType=false, $displayIfNoReviews=false)
 getReviewsCollection ()
 hasOptions ()

Protected Member Functions

 _toHtml ()

Protected Attributes

 $_reviewsCollection


Detailed Description

Definition at line 34 of file View.php.


Member Function Documentation

_toHtml (  )  [protected]

Render block HTML

Returns:
string

Reimplemented from Mage_Core_Block_Template.

Definition at line 38 of file View.php.

00039     {
00040         $this->getProduct()->setShortDescription(null);
00041 
00042         return parent::_toHtml();
00043     }

getReviewsCollection (  ) 

Definition at line 67 of file View.php.

00068     {
00069         if (null === $this->_reviewsCollection) {
00070             $this->_reviewsCollection = Mage::getModel('review/review')->getCollection()
00071                 ->addStoreFilter(Mage::app()->getStore()->getId())
00072                 ->addStatusFilter('approved')
00073                 ->addEntityFilter('product', $this->getProduct()->getId())
00074                 ->setDateOrder();
00075         }
00076         return $this->_reviewsCollection;
00077     }

getReviewsSummaryHtml ( Mage_Catalog_Model_Product product,
templateType = false,
displayIfNoReviews = false 
)

Replace review summary html with more detailed review summary Reviews collection count will be jerked here

Parameters:
Mage_Catalog_Model_Product $product
string $templateType
bool $displayIfNoReviews
Returns:
string

Reimplemented from Mage_Catalog_Block_Product_Abstract.

Definition at line 54 of file View.php.

00055     {
00056         return
00057             $this->getLayout()->createBlock('rating/entity_detailed')
00058                 ->setEntityId($this->getProduct()->getId())
00059                 ->toHtml()
00060             .
00061             $this->getLayout()->getBlock('product_review_list.count')
00062                 ->assign('count', $this->getReviewsCollection()->getSize())
00063                 ->toHtml()
00064             ;
00065     }

hasOptions (  ) 

Force product view page behave like without options

Returns:
false

Reimplemented from Mage_Catalog_Block_Product_View.

Definition at line 84 of file View.php.

00085     {
00086         return false;
00087     }


Member Data Documentation

$_reviewsCollection [protected]

Definition at line 36 of file View.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