Mage_Core_Model_Config_Data Class Reference

Inheritance diagram for Mage_Core_Model_Config_Data:

Mage_Core_Model_Abstract Varien_Object Mage_Adminhtml_Model_System_Config_Backend_Admin_Custom Mage_Adminhtml_Model_System_Config_Backend_Admin_Usecustom Mage_Adminhtml_Model_System_Config_Backend_Admin_Usesecretkey Mage_Adminhtml_Model_System_Config_Backend_Baseurl Mage_Adminhtml_Model_System_Config_Backend_Cache Mage_Adminhtml_Model_System_Config_Backend_Catalog_Inventory_Managestock Mage_Adminhtml_Model_System_Config_Backend_Catalog_Search_Type Mage_Adminhtml_Model_System_Config_Backend_Category Mage_Adminhtml_Model_System_Config_Backend_Currency_Abstract Mage_Adminhtml_Model_System_Config_Backend_Currency_Cron Mage_Adminhtml_Model_System_Config_Backend_Datashare Mage_Adminhtml_Model_System_Config_Backend_Design_Package Mage_Adminhtml_Model_System_Config_Backend_Email_Address Mage_Adminhtml_Model_System_Config_Backend_Email_Sender Mage_Adminhtml_Model_System_Config_Backend_Encrypted Mage_Adminhtml_Model_System_Config_Backend_Image Mage_Adminhtml_Model_System_Config_Backend_Layer_Children Mage_Adminhtml_Model_System_Config_Backend_Locale Mage_Adminhtml_Model_System_Config_Backend_Log_Cron Mage_Adminhtml_Model_System_Config_Backend_Price_Scope Mage_Adminhtml_Model_System_Config_Backend_Product_Alert_Cron Mage_Adminhtml_Model_System_Config_Backend_Seo_Product Mage_Adminhtml_Model_System_Config_Backend_Serialized Mage_Adminhtml_Model_System_Config_Backend_Shipping_Tablerate Mage_Adminhtml_Model_System_Config_Backend_Sitemap Mage_Adminhtml_Model_System_Config_Backend_Sitemap_Cron Mage_Adminhtml_Model_System_Config_Backend_Store Mage_Adminhtml_Model_System_Config_Clone_Media_Image Mage_Customer_Model_Config_Share Mage_Tax_Model_Config_Price_Include

List of all members.

Public Member Functions

 afterLoad ()
 isValueChanged ()
 getOldValue ()

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 34 of file Data.php.


Member Function Documentation

_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

Returns:
string

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

Returns:
bool

Definition at line 58 of file Data.php.

00059     {
00060         return $this->getValue() != $this->getOldValue();
00061     }


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

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