Mage_Downloadable_Block_Checkout_Cart_Item_Renderer Class Reference

Inheritance diagram for Mage_Downloadable_Block_Checkout_Cart_Item_Renderer:

Mage_Checkout_Block_Cart_Item_Renderer Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getLinks ()
 getLinksTitle ()


Detailed Description

Definition at line 34 of file Renderer.php.


Member Function Documentation

getLinks (  ) 

Enter description here...

Returns:
array

Definition at line 42 of file Renderer.php.

00043     {
00044         $itemLinks = array();
00045         if ($linkIds = $this->getItem()->getOptionByCode('downloadable_link_ids')) {
00046             $productLinks = $this->getProduct()->getTypeInstance(true)
00047                 ->getLinks($this->getProduct());
00048             foreach (explode(',', $linkIds->getValue()) as $linkId) {
00049                 if (isset($productLinks[$linkId])) {
00050                     $itemLinks[] = $productLinks[$linkId];
00051                 }
00052             }
00053         }
00054         return $itemLinks;
00055     }

getLinksTitle (  ) 

Return title of links section

Returns:
string

Definition at line 62 of file Renderer.php.

00063     {
00064         if ($this->getProduct()->getLinksTitle()) {
00065             return $this->getProduct()->getLinksTitle();
00066         }
00067         return Mage::getStoreConfig(Mage_Downloadable_Model_Link::XML_PATH_LINKS_TITLE);
00068     }


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