Class Mage_Core_Model_Resource

Description

Resources and connections registry and factory

Located in /Core/Model/Resource.php (line 32)


	
			
Class Constant Summary
Variable Summary
Method Summary
void cleanDbRow ( &$row)
void createConnection ( $name,  $type,  $config)
void getAutoUpdate ()
mixed getConnection (string $name)
Varien_Simplexml_Config getEntity ( $model, string $entity, string $resource)
void getMappedTableName ( $tableName)
string getTableName (string $modelEntity)
void setAutoUpdate ( $value)
void setMappedTableName ( $tableName,  $mappedName)
void _getDefaultConnection ( $requiredConnectionName)
Variables
array $_connections = array() (line 55)

Instances of actual connections

  • access: protected
array $_connectionTypes = array() (line 48)

Instances of classes for connection types

  • access: protected
array $_entities = array() (line 62)

Registry of resource entities

  • access: protected
mixed $_mappedTableNames (line 64)
  • access: protected
Methods
checkDbConnection (line 215)
  • access: public
void checkDbConnection ()
cleanDbRow (line 194)
  • access: public
void cleanDbRow ( &$row)
  • &$row
createConnection (line 206)
  • access: public
void createConnection ( $name,  $type,  $config)
  • $name
  • $type
  • $config
getAutoUpdate (line 222)
  • access: public
void getAutoUpdate ()
getConnection (line 72)

Creates a connection to resource whenever needed

  • access: public
mixed getConnection (string $name)
  • string $name
getConnectionTypeInstance (line 121)

Get connection type instance

Creates new if doesn't exist

  • access: public
Mage_Core_Model_Resource_Type_Abstract getConnectionTypeInstance (string $type)
  • string $type
getEntity (line 138)

Get resource entity

  • access: public
Varien_Simplexml_Config getEntity ( $model, string $entity, string $resource)
  • string $resource
  • string $entity
  • $model
getMappedTableName (line 185)
  • access: public
void getMappedTableName ( $tableName)
  • $tableName
getTableName (line 150)

Get resource table name

  • access: public
string getTableName (string $modelEntity)
  • string $modelEntity
setAutoUpdate (line 228)
  • access: public
void setAutoUpdate ( $value)
  • $value
setMappedTableName (line 179)
  • access: public
void setMappedTableName ( $tableName,  $mappedName)
  • $tableName
  • $mappedName
_getDefaultConnection (line 105)
  • access: protected
void _getDefaultConnection ( $requiredConnectionName)
  • $requiredConnectionName
Class Constants
AUTO_UPDATE_ALWAYS = 1 (line 38)
AUTO_UPDATE_CACHE_KEY = 'DB_AUTOUPDATE' (line 35)
AUTO_UPDATE_NEVER = -1 (line 37)
AUTO_UPDATE_ONCE = 0 (line 36)
DEFAULT_READ_RESOURCE = 'core_read' (line 40)
DEFAULT_WRITE_RESOURCE = 'core_write' (line 41)

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