Subversion Repositories PHPX

Rev

Rev 27 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

1
<?php

require_once __DIR__ . '/Database.php';

class ODBCDB extends Database
{
  /**
   * ODBC alias
   * @var string
   */

  protected $_alias;
 
  public function __construct()
  {
//     $this->_connection = @odbc_connect($this->_alias, $this->_username, $this->_password);
    $this->_dsn = 'odbc:' . $this->_alias;
    parent::__construct();
  }
 
  /**
   * (non-PHPdoc)
   * @see Database::_escapeValueArray()
   */

  protected function _escapeValueArray(array &$array, $suffix = '', array &$escape = array('`', '`'))
  {
    return parent::_escapeValueArray($array, $suffix, $escape);
  }
}