Mage_Downloadable_Helper_Data Class Reference

Inheritance diagram for Mage_Downloadable_Helper_Data:

Mage_Core_Helper_Abstract

List of all members.

Public Member Functions

 getIsShareable ($link)


Detailed Description

Definition at line 34 of file Data.php.


Member Function Documentation

getIsShareable ( link  ) 

Check is link shareable or not

Parameters:
Mage_Downloadable_Model_Link | Mage_Downloadable_Model_Link_Purchased_Item $link
Returns:
bool

Definition at line 42 of file Data.php.

00043     {
00044         $shareable = false;
00045         switch ($link->getIsShareable()) {
00046             case Mage_Downloadable_Model_Link::LINK_SHAREABLE_YES:
00047             case Mage_Downloadable_Model_Link::LINK_SHAREABLE_NO:
00048                 $shareable = (bool) $link->getIsShareable();
00049                 break;
00050             case Mage_Downloadable_Model_Link::LINK_SHAREABLE_CONFIG:
00051                 $shareable = (bool) Mage::getStoreConfigFlag(Mage_Downloadable_Model_Link::XML_PATH_CONFIG_IS_SHAREABLE);
00052         }
00053         return $shareable;
00054     }


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