Public Member Functions | |
getConnection ($config) | |
Protected Member Functions | |
_getDbAdapterInstance ($configArr) | |
_getDbAdapterClassName () |
Definition at line 28 of file Mysql.php.
_getDbAdapterClassName | ( | ) | [protected] |
_getDbAdapterInstance | ( | $ | configArr | ) | [protected] |
Create and return DB adapter object instance
array | $configArr Connection config |
Definition at line 57 of file Mysql.php.
00058 { 00059 $className = $this->_getDbAdapterClassName(); 00060 $adapter = new $className($configArr); 00061 return $adapter; 00062 }
getConnection | ( | $ | config | ) |
Enter description here...
array | $config Connection config |
Definition at line 37 of file Mysql.php.
00038 { 00039 $configArr = (array)$config; 00040 $configArr['profiler'] = !empty($configArr['profiler']) && $configArr['profiler']!=='false'; 00041 00042 $conn = $this->_getDbAdapterInstance($configArr); 00043 00044 if (!empty($configArr['initStatements']) && $conn) { 00045 $conn->query($configArr['initStatements']); 00046 } 00047 00048 return $conn; 00049 }