Public Member Functions | |
getLinks () | |
getLinksTitle () | |
getPurchasedLinkUrl ($item) | |
Protected Attributes | |
$_purchased = null |
Definition at line 35 of file Downloadable.php.
getLinks | ( | ) |
Enter description here...
Definition at line 44 of file Downloadable.php.
00045 { 00046 $this->_purchased = Mage::getModel('downloadable/link_purchased') 00047 ->load($this->getItem()->getOrder()->getId(), 'order_id'); 00048 $purchasedLinks = Mage::getModel('downloadable/link_purchased_item')->getCollection() 00049 ->addFieldToFilter('order_item_id', $this->getItem()->getOrderItem()->getId()); 00050 $this->_purchased->setPurchasedItems($purchasedLinks); 00051 00052 return $this->_purchased; 00053 }
getLinksTitle | ( | ) |
Definition at line 55 of file Downloadable.php.
00056 { 00057 if ($this->_purchased->getLinkSectionTitle()) { 00058 return $this->_purchased->getLinkSectionTitle(); 00059 } 00060 return Mage::getStoreConfig(Mage_Downloadable_Model_Link::XML_PATH_LINKS_TITLE); 00061 }
getPurchasedLinkUrl | ( | $ | item | ) |
$_purchased = null [protected] |
Definition at line 37 of file Downloadable.php.