Public Member Functions | |
afterLoad () | |
isValueChanged () | |
getOldValue () | |
Protected Member Functions | |
_construct () |
Definition at line 34 of file Data.php.
_construct | ( | ) | [protected] |
Varien model constructor
Reimplemented from Varien_Object.
Definition at line 40 of file Data.php.
00041 { 00042 $this->_init('core/config_data'); 00043 }
afterLoad | ( | ) |
Add availability call after load as public
Reimplemented from Mage_Core_Model_Abstract.
Definition at line 48 of file Data.php.
00049 { 00050 $this->_afterLoad(); 00051 }
getOldValue | ( | ) |
Get old value from existing config
Reimplemented in Mage_Adminhtml_Model_System_Config_Backend_Encrypted.
Definition at line 68 of file Data.php.
00069 { 00070 $storeCode = $this->getStoreCode(); 00071 $websiteCode = $this->getWebsiteCode(); 00072 $path = $this->getPath(); 00073 if ($websiteCode) { 00074 return Mage::app()->getWebsite($websiteCode)->getConfig($path); 00075 } 00076 if ($storeCode) { 00077 return Mage::app()->getStore($storeCode)->getConfig($path); 00078 } 00079 return (string) Mage::getConfig()->getNode('default/' . $path); 00080 }
isValueChanged | ( | ) |
Check if config data value was changed
Definition at line 58 of file Data.php.
00059 { 00060 return $this->getValue() != $this->getOldValue(); 00061 }