Public Member Functions | |
__construct () | |
getOptionText ($value) | |
Protected Attributes | |
$_configNodePath |
Definition at line 34 of file Container.php.
__construct | ( | ) |
getOptionText | ( | $ | value | ) |
Get a text for option value
string|integer | $value |
Reimplemented from Mage_Eav_Model_Entity_Attribute_Source_Abstract.
Definition at line 49 of file Container.php.
00050 { 00051 $options = $this->getAllOptions(); 00052 if (sizeof($options) > 0) { 00053 foreach ($options as $option) { 00054 if (isset($option['value']) && $option['value'] == $value) { 00055 return $option['label']; 00056 } 00057 } 00058 } 00059 if (isset($options[$value])) { 00060 return $option[$value]; 00061 } 00062 return false; 00063 }
$_configNodePath [protected] |
Reimplemented from Mage_Eav_Model_Entity_Attribute_Source_Config.
Definition at line 36 of file Container.php.