Source for file sqlite3.dbresultset.php

Documentation is available at sqlite3.dbresultset.php

  1. <?php
  2. /**
  3. * @package    jelix
  4. * @subpackage db_driver
  5. * @author     Loic Mathaud
  6. * @contributor Laurent Jouanneau
  7. * @copyright  2006 Loic Mathaud, 2008-2012 Laurent Jouanneau
  8. * @link      http://www.jelix.org
  9. * @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
  10. */
  11.  
  12. /**
  13.  *
  14.  * Couche d'encapsulation des resultset sqlite.
  15.  * @package    jelix
  16.  * @subpackage db_driver
  17.  */
  18. class sqlite3DbResultSet extends jDbResultSet {
  19.  
  20.     protected function _fetch () {
  21.  
  22.         $res = $this->_idResult->fetchArray(SQLITE3_ASSOC);
  23.         if ($res === false)
  24.             return $res;
  25.         return (object)$res;
  26.     }
  27.  
  28.     protected function _free () {
  29.         $this->_idResult->finalize();
  30.     }
  31.  
  32.     protected function _rewind () {
  33.         return $this->_idResult->reset();
  34.     }
  35.  
  36.     public function rowCount() {
  37.         return -1; // no method or property in a SQLite3Result!!?
  38.     }
  39.  
  40.     public function bindColumn ($column, &$param , $type=null)
  41.       {throw new jException('jelix~db.error.feature.unsupported', array('sqlite3','bindColumn')); }
  42.     public function bindParam($parameter, &$variable , $data_type =null, $length=null,  $driver_options=null)
  43.       {throw new jException('jelix~db.error.feature.unsupported', array('sqlite3','bindParam')); }
  44.     public function bindValue($parameter, $value, $data_type)
  45.       {throw new jException('jelix~db.error.feature.unsupported', array('sqlite3','bindValue')); }
  46.     public function columnCount()
  47.       { return $this->_idResult->numColumns(); }
  48.     public function execute($parameters=null)
  49.       {throw new jException('jelix~db.error.feature.unsupported', array('sqlite3','bindColumn')); }
  50. }

Documentation generated on Mon, 26 Oct 2015 21:58:30 +0100 by phpDocumentor 1.4.3