
Public Member Functions | |
| addPrice ($priceData) | |
| getLabel () | |
Protected Member Functions | |
| _construct () | |
| _afterSave () | |
Definition at line 35 of file Attribute.php.
| _afterSave | ( | ) | [protected] |
After save process
Reimplemented from Mage_Core_Model_Abstract.
Definition at line 91 of file Attribute.php.
00092 { 00093 parent::_afterSave(); 00094 $this->_getResource()->saveLabel($this); 00095 $this->_getResource()->savePrices($this); 00096 return $this; 00097 }
| _construct | ( | ) | [protected] |
Initialize resource model
Reimplemented from Varien_Object.
Definition at line 41 of file Attribute.php.
00042 { 00043 $this->_init('catalog/product_type_configurable_attribute'); 00044 }
| addPrice | ( | $ | priceData | ) |
| getLabel | ( | ) |
Retrieve label
Definition at line 68 of file Attribute.php.
00069 { 00070 if (is_null($this->getData('label')) && $this->getProductAttribute()) { 00071 // If no attribute label seted 00072 $this->setData('label', $this->getProductAttribute()->getFrontend()->getLabel()); 00073 } 00074 00075 return $this->getData('label'); 00076 }
1.5.8