Class Mage_Core_Model_Mysql4_Variable

Description

Custom variable resource model

Located in /Core/Model/Mysql4/Variable.php (line 34)

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Core_Model_Mysql4_Abstract
      |
      --Mage_Core_Model_Mysql4_Variable
Method Summary
array getVariableByCode (string $code, [boolean $withValue = false], [integer $storeId = 0])
Mage_Core_Model_Mysql4_Variable _addValueToSelect ( $select, [integer $storeId = 0])
void _construct ()
Zend_Db_Select _getLoadSelect (string $field, mixed $value, Mage_Core_Model_Abstract $object)
Variables
Methods
getVariableByCode (line 67)

Retrieve variable data by code

  • access: public
array getVariableByCode (string $code, [boolean $withValue = false], [integer $storeId = 0])
  • string $code
  • boolean $withValue
  • integer $storeId
loadByCode (line 51)

Load variable by code

  • access: public
Mage_Core_Model_Mysql4_Variable loadByCode (Mage_Core_Model_Variable $object, string $code)
_addValueToSelect (line 130)

Add variable store and default value to select

  • access: protected
Mage_Core_Model_Mysql4_Variable _addValueToSelect ( $select, [integer $storeId = 0])
  • Zend_Db_Select $select
  • integer $storeId
_afterSave (line 84)

Perform actions after object save

  • access: protected

Redefinition of:
Mage_Core_Model_Mysql4_Abstract::_afterSave()
Perform actions after object save
_construct (line 39)

Constructor

  • access: protected
void _construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::_construct()
Resource initialization
_getLoadSelect (line 116)

Retrieve select object for load object data

  • access: protected
Zend_Db_Select _getLoadSelect (string $field, mixed $value, Mage_Core_Model_Abstract $object)

Redefinition of:
Mage_Core_Model_Mysql4_Abstract::_getLoadSelect()
Retrieve select object for load object data

Inherited Methods

Inherited From Mage_Core_Model_Mysql4_Abstract

Mage_Core_Model_Mysql4_Abstract::addUniqueField()
Mage_Core_Model_Mysql4_Abstract::afterLoad()
Mage_Core_Model_Mysql4_Abstract::delete()
Mage_Core_Model_Mysql4_Abstract::forsedSave()
Mage_Core_Model_Mysql4_Abstract::getChecksum()
Mage_Core_Model_Mysql4_Abstract::getIdFieldName()
Mage_Core_Model_Mysql4_Abstract::getMainTable()
Mage_Core_Model_Mysql4_Abstract::getReadConnection()
Mage_Core_Model_Mysql4_Abstract::getTable()
Mage_Core_Model_Mysql4_Abstract::getUniqueFields()
Mage_Core_Model_Mysql4_Abstract::getValueTable()
Mage_Core_Model_Mysql4_Abstract::hasDataChanged()
Mage_Core_Model_Mysql4_Abstract::load()
Mage_Core_Model_Mysql4_Abstract::resetUniqueField()
Mage_Core_Model_Mysql4_Abstract::save()
Mage_Core_Model_Mysql4_Abstract::unserializeFields()
Mage_Core_Model_Mysql4_Abstract::_afterDelete()
Mage_Core_Model_Mysql4_Abstract::_afterLoad()
Mage_Core_Model_Mysql4_Abstract::_afterSave()
Mage_Core_Model_Mysql4_Abstract::_beforeDelete()
Mage_Core_Model_Mysql4_Abstract::_beforeSave()
Mage_Core_Model_Mysql4_Abstract::_checkUnique()
Mage_Core_Model_Mysql4_Abstract::_getConnection()
Mage_Core_Model_Mysql4_Abstract::_getLoadSelect()
Mage_Core_Model_Mysql4_Abstract::_getReadAdapter()
Mage_Core_Model_Mysql4_Abstract::_getWriteAdapter()
Mage_Core_Model_Mysql4_Abstract::_init()
Mage_Core_Model_Mysql4_Abstract::_initUniqueFields()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForSave()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForTable()
Mage_Core_Model_Mysql4_Abstract::_prepareValueForSave()
Mage_Core_Model_Mysql4_Abstract::_serializeFields()
Mage_Core_Model_Mysql4_Abstract::_setMainTable()
Mage_Core_Model_Mysql4_Abstract::_setResource()

Inherited From Mage_Core_Model_Resource_Abstract

Mage_Core_Model_Resource_Abstract::__construct()
Mage_Core_Model_Resource_Abstract::addCommitCallback()
Mage_Core_Model_Resource_Abstract::beginTransaction()
Mage_Core_Model_Resource_Abstract::commit()
Mage_Core_Model_Resource_Abstract::formatDate()
Mage_Core_Model_Resource_Abstract::mktime()
Mage_Core_Model_Resource_Abstract::rollBack()
Mage_Core_Model_Resource_Abstract::_construct()
Mage_Core_Model_Resource_Abstract::_getReadAdapter()
Mage_Core_Model_Resource_Abstract::_getWriteAdapter()
Mage_Core_Model_Resource_Abstract::_serializeField()
Mage_Core_Model_Resource_Abstract::_unserializeField()
Class Constants

Documentation generated on Fri, 11 Feb 2011 17:15:51 +0200 by phpDocumentor 1.4.3