Mage_Catalog_Block_Product Class Reference

Inheritance diagram for Mage_Catalog_Block_Product:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getProduct ()
 getPrice ()
 getFinalPrice ()
 getPriceHtml ($product)

Protected Attributes

 $_finalPrice = array()


Detailed Description

Definition at line 28 of file Product.php.


Member Function Documentation

getFinalPrice (  ) 

Definition at line 53 of file Product.php.

00054     {
00055         if (!isset($this->_finalPrice[$this->getProduct()->getId()])) {
00056             $this->_finalPrice[$this->getProduct()->getId()] = $this->getProduct()->getFinalPrice();
00057         }
00058         return $this->_finalPrice[$this->getProduct()->getId()];
00059     }

getPrice (  ) 

Definition at line 48 of file Product.php.

00049     {
00050         return $this->getProduct()->getPrice();
00051     }

getPriceHtml ( product  ) 

Definition at line 61 of file Product.php.

00062     {
00063         $this->setTemplate('catalog/product/price.phtml');
00064         $this->setProduct($product);
00065         return $this->toHtml();
00066     }

getProduct (  ) 

Definition at line 32 of file Product.php.

00033     {
00034         if (!$this->getData('product') instanceof Mage_Catalog_Model_Product) {
00035             if ($this->getData('product')->getProductId()) {
00036                 $productId = $this->getData('product')->getProductId();
00037             }
00038             if ($productId) {
00039                 $product = Mage::getModel('catalog/product')->load($productId);
00040                 if ($product) {
00041                     $this->setProduct($product);
00042                 }
00043             }
00044         }
00045         return $this->getData('product');
00046     }


Member Data Documentation

$_finalPrice = array() [protected]

Definition at line 30 of file Product.php.


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

Generated on Sat Jul 4 17:23:36 2009 for Magento by  doxygen 1.5.8