Mage_Catalog_Block_Product_View_Media Class Reference

Inheritance diagram for Mage_Catalog_Block_Product_View_Media:

Mage_Catalog_Block_Product_View_Abstract Mage_Catalog_Block_Product_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getGalleryImages ()
 getGalleryUrl ($image=null)
 disableGallery ()

Protected Attributes

 $_isGalleryDisabled


Detailed Description

Definition at line 34 of file Media.php.


Member Function Documentation

disableGallery (  ) 

Definition at line 57 of file Media.php.

00058     {
00059         $this->_isGalleryDisabled = true;
00060     }

getGalleryImages (  ) 

Definition at line 38 of file Media.php.

00039     {
00040         if ($this->_isGalleryDisabled) {
00041             return array();
00042         }
00043         $collection = $this->getProduct()->getMediaGalleryImages();
00044         return $collection;
00045     }

getGalleryUrl ( image = null  ) 

Definition at line 47 of file Media.php.

00048     {
00049         $params = array('id'=>$this->getProduct()->getId());
00050         if ($image) {
00051             $params['image'] = $image->getValueId();
00052             return $this->getUrl('*/*/gallery', $params);
00053         }
00054         return $this->getUrl('*/*/gallery', $params);
00055     }


Member Data Documentation

$_isGalleryDisabled [protected]

Definition at line 36 of file Media.php.


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

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