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
  7. @copyright  2006 Loic Mathaud
  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.     }
  24.     protected function _free (){
  25.         return;
  26.     }
  27.  
  28.     protected function _rewind (){
  29.         return sqlite_rewind $this->_idResult );
  30.     }
  31.  
  32.     public function rowCount(){
  33.         return sqlite_num_rows($this->_idResult);
  34.     }
  35.  
  36.     public function bindColumn($column&$param $type=null )
  37.       {throw new jException('jelix~db.error.feature.unsupported'array('sqlite','bindColumn'))}
  38.     public function bindParam($parameter&$variable $data_type =null$length=null,  $driver_options=null)
  39.       {throw new jException('jelix~db.error.feature.unsupported'array('sqlite','bindParam'))}
  40.     public function bindValue($parameter$value$data_type)
  41.       {throw new jException('jelix~db.error.feature.unsupported'array('sqlite','bindValue'))}
  42.     public function columnCount()
  43.       return sqlite_num_fields($this->_idResult)}
  44.     public function execute($parameters=null)
  45.       {throw new jException('jelix~db.error.feature.unsupported'array('sqlite','bindColumn'))}
  46. }
  47. ?>

Documentation generated on Wed, 07 Sep 2011 13:48:30 +0200 by phpDocumentor 1.4.3