Public Member Functions | |
getLinks () | |
getLinksTitle () | |
Protected Attributes | |
$_purchasedLinks = null |
Definition at line 34 of file Downloadable.php.
getLinks | ( | ) |
Enter description here...
Definition at line 43 of file Downloadable.php.
00044 { 00045 $this->_purchasedLinks = Mage::getModel('downloadable/link_purchased') 00046 ->load($this->getOrderItem()->getOrder()->getId(), 'order_id'); 00047 $purchasedItems = Mage::getModel('downloadable/link_purchased_item')->getCollection() 00048 ->addFieldToFilter('order_item_id', $this->getOrderItem()->getId()); 00049 $this->_purchasedLinks->setPurchasedItems($purchasedItems); 00050 00051 return $this->_purchasedLinks; 00052 }
getLinksTitle | ( | ) |
Definition at line 54 of file Downloadable.php.
00055 { 00056 if ($this->_purchasedLinks->getLinkSectionTitle()) { 00057 return $this->_purchasedLinks->getLinkSectionTitle(); 00058 } 00059 return Mage::getStoreConfig(Mage_Downloadable_Model_Link::XML_PATH_LINKS_TITLE); 00060 }
$_purchasedLinks = null [protected] |
Definition at line 36 of file Downloadable.php.