Public Member Functions | |
hasSamples () | |
getSamples () | |
getSampleUrl ($sample) | |
getSamplesTitle () | |
getIsOpenInNewWindow () |
Definition at line 34 of file Samples.php.
getIsOpenInNewWindow | ( | ) |
Return true if target of link new window
Definition at line 82 of file Samples.php.
00083 { 00084 return Mage::getStoreConfigFlag(Mage_Downloadable_Model_Link::XML_PATH_TARGET_NEW_WINDOW); 00085 }
getSamples | ( | ) |
Get downloadable product samples
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
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...
Definition at line 42 of file Samples.php.
00043 { 00044 return $this->getProduct()->getTypeInstance(true) 00045 ->hasSamples($this->getProduct()); 00046 }