Mage_Downloadable_Block_Adminhtml_Sales_Items_Column_Downloadable_Name Class Reference

Inheritance diagram for Mage_Downloadable_Block_Adminhtml_Sales_Items_Column_Downloadable_Name:

Mage_Adminhtml_Block_Sales_Items_Column_Name Mage_Adminhtml_Block_Sales_Items_Column_Default Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getLinks ()
 getLinksTitle ()

Protected Attributes

 $_purchased = null


Detailed Description

Definition at line 35 of file Name.php.


Member Function Documentation

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     }


Member Data Documentation

$_purchased = null [protected]

Definition at line 37 of file Name.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:07 2009 for Magento by  doxygen 1.5.8