/** * Retrieve label of attribute scope * * GLOBAL | WEBSITE | STORE * * @param Mage_Eav_Model_Entity_Attribute $attribute * @return string */ public function getScopeLabel($attribute) { $html = ''; if (Mage::app()->isSingleStoreMode()) { return $html; } if ($attribute->isScopeGlobal()) { $html .= '<br/>[GLOBAL]'; } elseif ($attribute->isScopeWebsite()) { $html .= '<br/>[WEBSITE]'; } elseif ($attribute->isScopeStore()) { $html .= '<br/>[STORE VIEW]'; } return $html; }
/** * Retrieve label of attribute scope * * GLOBAL | WEBSITE | STORE * * @param Mage_Eav_Model_Entity_Attribute $attribute * @return string */ public function getScopeLabel($attribute) { $html = ''; if (Mage::app()->isSingleStoreMode()) { return $html; } if ($attribute->isScopeGlobal()) { $html .= '<br/>' . Mage::helper('Mage_Adminhtml_Helper_Data')->__('[GLOBAL]'); } elseif ($attribute->isScopeWebsite()) { $html .= '<br/>' . Mage::helper('Mage_Adminhtml_Helper_Data')->__('[WEBSITE]'); } elseif ($attribute->isScopeStore()) { $html .= '<br/>' . Mage::helper('Mage_Adminhtml_Helper_Data')->__('[STORE VIEW]'); } return $html; }