Mage_Downloadable_Block_Catalog_Product_Samples Class Reference

Inheritance diagram for Mage_Downloadable_Block_Catalog_Product_Samples:

Mage_Catalog_Block_Product_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 hasSamples ()
 getSamples ()
 getSampleUrl ($sample)
 getSamplesTitle ()
 getIsOpenInNewWindow ()


Detailed Description

Definition at line 34 of file Samples.php.


Member Function Documentation

getIsOpenInNewWindow (  ) 

Return true if target of link new window

Returns:
bool

Definition at line 82 of file Samples.php.

getSamples (  ) 

Get downloadable product samples

Returns:
array

Definition at line 53 of file Samples.php.

00054     {
00055         return $this->getProduct()->getTypeInstance(true)
00056             ->getSamples($this->getProduct());
00057     }

getSamplesTitle (  ) 

Return title of samples section

Returns:
string

Definition at line 69 of file Samples.php.

00070     {
00071         if ($this->getProduct()->getSamplesTitle()) {
00072             return $this->getProduct()->getSamplesTitle();
00073         }
00074         return Mage::getStoreConfig(Mage_Downloadable_Model_Sample::XML_PATH_SAMPLES_TITLE);
00075     }

getSampleUrl ( sample  ) 

Definition at line 59 of file Samples.php.

00060     {
00061         return $this->getUrl('downloadable/download/sample', array('sample_id' => $sample->getId()));
00062     }

hasSamples (  ) 

Enter description here...

Returns:
boolean

Definition at line 42 of file Samples.php.

00043     {
00044         return $this->getProduct()->getTypeInstance(true)
00045             ->hasSamples($this->getProduct());
00046     }


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

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