Public Member Functions | |
getLinks () | |
getLinksTitle () | |
Protected Attributes | |
$_purchased = null |
Definition at line 35 of file Name.php.
getLinks | ( | ) |
Definition at line 38 of file Name.php.
00039 { 00040 $this->_purchased = Mage::getModel('downloadable/link_purchased') 00041 ->load($this->getItem()->getOrder()->getId(), 'order_id'); 00042 $purchasedItem = Mage::getModel('downloadable/link_purchased_item')->getCollection() 00043 ->addFieldToFilter('order_item_id', $this->getItem()->getId()); 00044 $this->_purchased->setPurchasedItems($purchasedItem); 00045 return $this->_purchased; 00046 }
getLinksTitle | ( | ) |
Definition at line 48 of file Name.php.
00049 { 00050 if ($this->_purchased && $this->_purchased->getLinkSectionTitle()) { 00051 return $this->_purchased->getLinkSectionTitle(); 00052 } 00053 return Mage::getStoreConfig(Mage_Downloadable_Model_Link::XML_PATH_LINKS_TITLE); 00054 }