/** * Check whether attribute is visible * * @param Mage_Eav_Model_Entity_Attribute $attribute * @return bool */ protected function _isAttributeVisible(Mage_Eav_Model_Entity_Attribute $attribute) { return !(!$attribute || $attribute->hasIsVisible() && !$attribute->getIsVisible()); }
/** * Return whether given attribute is editable * * @param string $type Grid block type * @param Mage_Eav_Model_Entity_Attribute $attribute Attribute object * @return bool */ protected function _checkAttributeEditability($type, $attribute) { return (!$attribute->hasIsVisible() || $attribute->getIsVisible()) && $attribute->getFrontend()->getInputType(); }