/** * Get DB connection. * * @return \src\db\driver\driver_interface */ protected function get_dbal_connection() { if ($this->dbal_connection === null) { $dbal_driver_class = $this->config_php_file->convert_30_dbms_to_31($this->config_php_file->get('dbms')); $this->dbal_connection = new $dbal_driver_class(); $this->dbal_connection->sql_connect($this->config_php_file->get('dbhost'), $this->config_php_file->get('dbuser'), $this->config_php_file->get('dbpasswd'), $this->config_php_file->get('dbname'), $this->config_php_file->get('dbport'), defined('src_DB_NEW_LINK') && src_DB_NEW_LINK); } return $this->dbal_connection; }