public function __construct($config = '') { if (!empty($config)) { $this->config = $config; if (empty($this->config['params'])) { $this->config['params'] = array(); } $this->dbType = $this->_getDsnType($config['dsn']); } }