Public Member Functions | |
getConnection ($config) |
Definition at line 35 of file Mysqli.php.
getConnection | ( | $ | config | ) |
Definition at line 37 of file Mysqli.php.
00038 { 00039 $configArr = (array)$config; 00040 $configArr['profiler'] = !empty($configArr['profiler']) && $configArr['profiler']!=='false'; 00041 00042 $conn = new Varien_Db_Adapter_Mysqli($configArr); 00043 00044 if (!empty($configArr['initStatements']) && $conn) { 00045 $conn->query($configArr['initStatements']); 00046 } 00047 00048 return $conn; 00049 }