Subversion Repositories PHPX

Rev

Rev 29 | 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
 
32 PointedEar 13
  /**
14
   * (non-PHPdoc)
15
   * @see Database::_leftQuote
16
   */
17
  protected $_leftQuote = '[';
18
 
19
  /**
20
   * (non-PHPdoc)
21
   * @see Database::_rightQuote
22
   */
23
  protected $_rightQuote = ']';
24
 
27 PointedEar 25
  public function __construct()
26
  {
29 PointedEar 27
//     $this->_connection = @odbc_connect($this->_alias, $this->_username, $this->_password);
28
    $this->_dsn = 'odbc:' . $this->_alias;
29
    parent::__construct();
27 PointedEar 30
  }
31
}