Public Member Functions | |
getLinks () | |
getLinksTitle () |
Definition at line 34 of file Renderer.php.
getLinks | ( | ) |
Enter description here...
Definition at line 42 of file Renderer.php.
00043 { 00044 $itemLinks = array(); 00045 if ($linkIds = $this->getItem()->getOptionByCode('downloadable_link_ids')) { 00046 $productLinks = $this->getProduct()->getTypeInstance(true) 00047 ->getLinks($this->getProduct()); 00048 foreach (explode(',', $linkIds->getValue()) as $linkId) { 00049 if (isset($productLinks[$linkId])) { 00050 $itemLinks[] = $productLinks[$linkId]; 00051 } 00052 } 00053 } 00054 return $itemLinks; 00055 }
getLinksTitle | ( | ) |
Return title of links section
Definition at line 62 of file Renderer.php.
00063 { 00064 if ($this->getProduct()->getLinksTitle()) { 00065 return $this->getProduct()->getLinksTitle(); 00066 } 00067 return Mage::getStoreConfig(Mage_Downloadable_Model_Link::XML_PATH_LINKS_TITLE); 00068 }