Mage_Downloadable_Block_Sales_Order_Item_Renderer_Downloadable Class Reference

Inheritance diagram for Mage_Downloadable_Block_Sales_Order_Item_Renderer_Downloadable:

Mage_Sales_Block_Order_Item_Renderer_Default Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getLinks ()
 getLinksTitle ()

Protected Attributes

 $_purchasedLinks = null


Detailed Description

Definition at line 34 of file Downloadable.php.


Member Function Documentation

getLinks (  ) 

Enter description here...

Returns:
unknown

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     }


Member Data Documentation

$_purchasedLinks = null [protected]

Definition at line 36 of file Downloadable.php.


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

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