Mage_Downloadable_Block_Sales_Order_Email_Items_Downloadable Class Reference

Inheritance diagram for Mage_Downloadable_Block_Sales_Order_Email_Items_Downloadable:

Mage_Sales_Block_Order_Email_Items_Default Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getLinks ()
 getLinksTitle ()
 getPurchasedLinkUrl ($item)

Protected Attributes

 $_purchased = null


Detailed Description

Definition at line 35 of file Downloadable.php.


Member Function Documentation

getLinks (  ) 

Enter description here...

Returns:
unknown

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  ) 

Definition at line 63 of file Downloadable.php.

00064     {
00065         return $this->getUrl('downloadable/download/link', array(
00066             'id'        => $item->getLinkHash(),
00067             '_store'    => $this->getOrder()->getStore(),
00068             '_secure'   => true,
00069             '_nosid'    => true
00070         ));
00071     }


Member Data Documentation

$_purchased = null [protected]

Definition at line 37 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