return implode(';',
$connectionSettings);
} /**
* @return PDO
*/
private function createConnection(array
$dbConfig) { $password =
isset($dbConfig['password'
]) ?
$dbConfig['password'
] : '';
$connectionString =
$this->
buildConnectionString($dbConfig);
try { $conn =
new PDO( 'mysql:' .
$connectionString,
$dbConfig['username'
],
$password );
$conn->
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION
);
$conn->
setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC
);