Mage_Downloadable_Model_Sales_Order_Pdf_Items_Abstract Class Reference

Inheritance diagram for Mage_Downloadable_Model_Sales_Order_Pdf_Items_Abstract:

Mage_Sales_Model_Order_Pdf_Items_Abstract Mage_Core_Model_Abstract Varien_Object Mage_Downloadable_Model_Sales_Order_Pdf_Items_Creditmemo Mage_Downloadable_Model_Sales_Order_Pdf_Items_Invoice

List of all members.

Public Member Functions

 getLinks ()
 getLinksTitle ()
 draw ()

Protected Attributes

 $_purchasedLinks = null


Detailed Description

Definition at line 35 of file Abstract.php.


Member Function Documentation

draw (  ) 

getLinks (  ) 

Return Purchased link for order item

Returns:
Mage_Downloadable_Model_Link_Purchased

Definition at line 44 of file Abstract.php.

00045     {
00046         $this->_purchasedLinks = Mage::getModel('downloadable/link_purchased')
00047             ->load($this->getOrder()->getId(), 'order_id');
00048         $purchasedItems = Mage::getModel('downloadable/link_purchased_item')->getCollection()
00049             ->addFieldToFilter('order_item_id', $this->getItem()->getOrderItem()->getId());
00050         $this->_purchasedLinks->setPurchasedItems($purchasedItems);
00051 
00052         return $this->_purchasedLinks;
00053     }

getLinksTitle (  ) 

Return Links Section Title for order item

Returns:
string

Definition at line 60 of file Abstract.php.

00061     {
00062         if ($this->_purchasedLinks->getLinkSectionTitle()) {
00063             return $this->_purchasedLinks->getLinkSectionTitle();
00064         }
00065         return Mage::getStoreConfig(Mage_Downloadable_Model_Link::XML_PATH_LINKS_TITLE);
00066     }


Member Data Documentation

$_purchasedLinks = null [protected]

Definition at line 37 of file Abstract.php.


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

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