Mage_Catalog_Model_Entity_Product_Attribute_Design_Options_Container Class Reference

Inheritance diagram for Mage_Catalog_Model_Entity_Product_Attribute_Design_Options_Container:

Mage_Eav_Model_Entity_Attribute_Source_Config Mage_Eav_Model_Entity_Attribute_Source_Abstract Mage_Eav_Model_Entity_Attribute_Source_Interface

List of all members.

Public Member Functions

 __construct ()
 getOptionText ($value)

Protected Attributes

 $_configNodePath


Detailed Description

Definition at line 34 of file Container.php.


Constructor & Destructor Documentation

__construct (  ) 

Definition at line 38 of file Container.php.

00039     {
00040         $this->_configNodePath = 'global/catalog/product/design/options_container';
00041     }


Member Function Documentation

getOptionText ( value  ) 

Get a text for option value

Parameters:
string|integer $value
Returns:
string

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     }


Member Data Documentation

$_configNodePath [protected]

Reimplemented from Mage_Eav_Model_Entity_Attribute_Source_Config.

Definition at line 36 of file Container.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:38 2009 for Magento by  doxygen 1.5.8