Source for file sqlite.dbresultset.php

Documentation is available at sqlite.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 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 sqliteDbResultSet extends jDbResultSet {
  19.  
  20.     protected function  _fetch (){
  21.         $ret =  sqlite_fetch_object($this->_idResult);
  22.         return $ret;
  23.         /*if($this->_fetchMode == jDbConnection::FETCH_CLASS){
  24.             if ($this->_fetchModeCtoArgs)
  25.                 $ret =  sqlite_fetch_object ($this->_idResult, $this->_fetchModeParam, $this->_fetchModeCtoArgs);
  26.             else
  27.                 $ret =  sqlite_fetch_object ($this->_idResult, $this->_fetchModeParam);
  28.         }else{
  29.             $ret =  sqlite_fetch_object ($this->_idResult);
  30.         }
  31.         return $ret;*/
  32.     }
  33.     protected function _free (){
  34.         return;
  35.     }
  36.  
  37.     protected function _rewind (){
  38.         return @sqlite_rewind $this->_idResult );
  39.     }
  40.  
  41.     public function rowCount(){
  42.         return sqlite_num_rows($this->_idResult);
  43.     }
  44.  
  45.     public function bindColumn($column&$param $type=null )
  46.       {throw new jException('jelix~db.error.feature.unsupported'array('sqlite','bindColumn'))}
  47.     public function bindParam($parameter&$variable $data_type =null$length=null,  $driver_options=null)
  48.       {throw new jException('jelix~db.error.feature.unsupported'array('sqlite','bindParam'))}
  49.     public function bindValue($parameter$value$data_type)
  50.       {throw new jException('jelix~db.error.feature.unsupported'array('sqlite','bindValue'))}
  51.     public function columnCount()
  52.       return sqlite_num_fields($this->_idResult)}
  53.     public function execute($parameters=null)
  54.       {throw new jException('jelix~db.error.feature.unsupported'array('sqlite','bindColumn'))}
  55. }

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