Public Member Functions | |
getIsShareable ($link) |
Definition at line 34 of file Data.php.
getIsShareable | ( | $ | link | ) |
Check is link shareable or not
Mage_Downloadable_Model_Link | | Mage_Downloadable_Model_Link_Purchased_Item $link |
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 }