Exemplo n.º 1
0
 function __construct($id, $mode = false)
 {
     if ($mode === false) {
         global $ADODB_FETCH_MODE;
         $mode = $ADODB_FETCH_MODE;
     }
     $this->fetchMode = $mode;
     return parent::__construct($id, $mode);
 }
 function __construct($id, $mode = false)
 {
     if ($mode === false) {
         global $ADODB_FETCH_MODE;
         $mode = $ADODB_FETCH_MODE;
     }
     if (!$mode) {
         $this->fetchMode = ADODB_FETCH_ASSOC;
     } else {
         $this->fetchMode = $mode;
     }
     parent::__construct($id, $mode);
 }
Exemplo n.º 3
0
 function __construct($queryID, $mode = false)
 {
     if ($mode === false) {
         global $ADODB_FETCH_MODE;
         $mode = $ADODB_FETCH_MODE;
     }
     switch ($mode) {
         case ADODB_FETCH_NUM:
             $this->fetchMode = MYSQL_NUM;
             break;
         case ADODB_FETCH_ASSOC:
             $this->fetchMode = MYSQL_ASSOC;
             break;
         case ADODB_FETCH_DEFAULT:
         case ADODB_FETCH_BOTH:
         default:
             $this->fetchMode = MYSQL_BOTH;
             break;
     }
     $this->adodbFetchMode = $mode;
     parent::__construct($queryID);
 }
Exemplo n.º 4
0
 /**
  * Constructor
  */
 function __construct($fakeid = 1)
 {
     global $ADODB_FETCH_MODE, $ADODB_COMPAT_FETCH;
     // fetch() on EOF does not delete $this->fields
     $this->compat = !empty($ADODB_COMPAT_FETCH);
     parent::__construct($fakeid);
     // fake queryID
     $this->fetchMode = $ADODB_FETCH_MODE;
 }
Exemplo n.º 5
0
 function __construct($id, $mode = false)
 {
     // freedts check...
     $this->hasFetchAssoc = function_exists('mssql_fetch_assoc');
     if ($mode === false) {
         global $ADODB_FETCH_MODE;
         $mode = $ADODB_FETCH_MODE;
     }
     $this->fetchMode = $mode;
     return parent::__construct($id, $mode);
 }
Exemplo n.º 6
0
 function __construct($id, $mode = false)
 {
     global $ADODB_FETCH_MODE;
     $this->fetchMode = $mode === false ? $ADODB_FETCH_MODE : $mode;
     parent::__construct($id);
 }
Exemplo n.º 7
0
 function __construct($queryID, $mode = false)
 {
     if ($mode === false) {
         global $ADODB_FETCH_MODE;
         $mode = $ADODB_FETCH_MODE;
     }
     $this->fetchMode = $mode;
     parent::__construct($queryID);
 }
Exemplo n.º 8
0
 function __construct($queryID, $mode = false)
 {
     if (!$mode) {
         global $ADODB_FETCH_MODE;
         $mode = $ADODB_FETCH_MODE;
     }
     switch ($mode) {
         case ADODB_FETCH_NUM:
             $this->fetchMode = FBSQL_NUM;
             break;
         case ADODB_FETCH_ASSOC:
             $this->fetchMode = FBSQL_ASSOC;
             break;
         case ADODB_FETCH_BOTH:
         default:
             $this->fetchMode = FBSQL_BOTH;
             break;
     }
     return parent::__construct($queryID);
 }
 function __construct($id, $mode = false)
 {
     if ($mode === false) {
         global $ADODB_FETCH_MODE;
         $mode = $ADODB_FETCH_MODE;
     }
     $this->adodbFetchMode = $mode;
     switch ($mode) {
         case ADODB_FETCH_NUM:
             $mode = PDO::FETCH_NUM;
             break;
         case ADODB_FETCH_ASSOC:
             $mode = PDO::FETCH_ASSOC;
             break;
         case ADODB_FETCH_BOTH:
         default:
             $mode = PDO::FETCH_BOTH;
             break;
     }
     $this->fetchMode = $mode;
     $this->_queryID = $id;
     parent::__construct($id);
 }