_parseConfig() protected method

Parse configuration array into options for PDO constructor.
protected _parseConfig ( ) : array
return array [dsn, username, password]
コード例 #1
0
ファイル: Pgsql.php プロジェクト: jubinpatel/horde
 /**
  * Parse configuration array into options for PDO constructor.
  *
  * @throws  Horde_Db_Exception
  * @return  array  [dsn, username, password]
  */
 protected function _parseConfig()
 {
     $this->_config['adapter'] = 'pgsql';
     // PDO for PostgreSQL does not accept a socket argument
     // in the connection string; the location can be set via the
     // "host" argument instead.
     if (!empty($this->_config['socket'])) {
         $this->_config['host'] = $this->_config['socket'];
         unset($this->_config['socket']);
     }
     return parent::_parseConfig();
 }