Exemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param   \PDO  $connection The pdo connection object.
  * @param   array $options    List of options used to configure the connection
  *
  * @since   2.0
  */
 public function __construct(\PDO $connection = null, $options = array())
 {
     $defaultOptions = array('driver' => 'odbc', 'dsn' => '', 'host' => 'localhost', 'database' => '', 'user' => '', 'password' => '', 'driverOptions' => array());
     $options = array_merge($defaultOptions, $options);
     $this->name = $options['driver'];
     // Finalize initialisation
     parent::__construct($connection, $options);
 }