Rev 27 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
27 | PointedEar | 1 | <?php |
2 | |||
29 | PointedEar | 3 | require_once __DIR__ . '/Database.php'; |
27 | PointedEar | 4 | |
5 | class ODBCDB extends Database |
||
6 | { |
||
7 | /** |
||
8 | * ODBC alias |
||
9 | * @var string |
||
10 | */ |
||
11 | protected $_alias; |
||
12 | |||
13 | public function __construct() |
||
14 | { |
||
29 | PointedEar | 15 | // $this->_connection = @odbc_connect($this->_alias, $this->_username, $this->_password); |
16 | $this->_dsn = 'odbc:' . $this->_alias; |
||
17 | parent::__construct(); |
||
27 | PointedEar | 18 | } |
19 | |||
20 | /** |
||
21 | * (non-PHPdoc) |
||
22 | * @see Database::_escapeValueArray() |
||
23 | */ |
||
24 | protected function _escapeValueArray(array &$array, $suffix = '', array &$escape = array('`', '`')) |
||
25 | { |
||
26 | return parent::_escapeValueArray($array, $suffix, $escape); |
||
27 | } |
||
28 | } |