Class Mage_Core_Model_Resource
Resources and connections registry and factory
Package: Mage\Core
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/Core/Model/Resource.php
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/Core/Model/Resource.php
public
Varien_Db_Adapter_Interface
|
|
protected
string|false
|
#
_getConnectionAdapterClassName( string $type )
Retrieve connection adapter class name by connection type |
protected
Varien_Db_Adapter_Interface|false
|
#
_newConnection( string $type,
Create new connection adapter instance by connection type and config |
protected
string
|
#
_getDefaultConnection( string $requiredConnectionName )
Retrieve default connection name by required connection name |
public
|
|
public
Varien_Simplexml_Config
|
|
public
string
|
|
public
|
|
public
boolean|string
|
|
public
|
|
public
unknown
|
#
createConnection( string $name, string $type, array $config )
Create new connection with custom config |
public
|
|
public
|
|
public
|
|
public
string
|
#
getIdxName( string $tableName, array|string $fields, string $indexType = Varien_Db_Adapter_Interface::INDEX_TYPE_INDEX )
Retrieve 32bit UNIQUE HASH for a Table index |
public
string
|
string |
AUTO_UPDATE_CACHE_KEY
|
'DB_AUTOUPDATE' |
|
integer |
AUTO_UPDATE_ONCE
|
0 |
|
integer |
AUTO_UPDATE_NEVER
|
-1 |
|
integer |
AUTO_UPDATE_ALWAYS
|
1 |
|
string |
DEFAULT_READ_RESOURCE
|
'core_read' |
|
string |
DEFAULT_WRITE_RESOURCE
|
'core_write' |
|
string |
DEFAULT_SETUP_RESOURCE
|
'core_setup' |
protected
array
|
$_connectionTypes | array() |
#
Instances of classes for connection types |
protected
array
|
$_connections | array() |
#
Instances of actual connections |
protected
array
|
$_skippedConnections | array() |
#
Names of actual connections that wait to set cache |
protected
array
|
$_entities | array() |
#
Registry of resource entities |
protected
array
|
$_mappedTableNames |
|
#
Mapped tables cache array |