public function __construct($params) { if (is_array($params)) { foreach ($params as $key => $val) { $this->{$key} = $val; } } log_message('info', 'Database Driver Class Initialized'); }
/** * Class constructor * * @param array $params * @return void */ public function __construct($params) { parent::__construct($params); // Legacy support for DSN in the hostname field if (empty($this->dsn)) { $this->dsn = $this->hostname; } }