Source for file sqlite3.dbresultset.php
Documentation is available at sqlite3.dbresultset.php
- <?php
- /**
- * @package jelix
- * @subpackage db_driver
- * @author Loic Mathaud
- * @contributor Laurent Jouanneau
- * @copyright 2006 Loic Mathaud, 2008-2012 Laurent Jouanneau
- * @link http://www.jelix.org
- * @licence http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
- */
-
- /**
- *
- * Couche d'encapsulation des resultset sqlite.
- * @package jelix
- * @subpackage db_driver
- */
- class sqlite3DbResultSet extends jDbResultSet {
-
- protected function _fetch () {
-
- $res = $this->_idResult->fetchArray(SQLITE3_ASSOC);
- if ($res === false)
- return $res;
- return (object)$res;
- }
-
- protected function _free () {
- $this->_idResult->finalize();
- }
-
- protected function _rewind () {
- return $this->_idResult->reset();
- }
-
- public function rowCount() {
- return -1; // no method or property in a SQLite3Result!!?
- }
-
- public function bindColumn ($column, &$param , $type=null)
- {throw new jException('jelix~db.error.feature.unsupported', array('sqlite3','bindColumn')); }
- public function bindParam($parameter, &$variable , $data_type =null, $length=null, $driver_options=null)
- {throw new jException('jelix~db.error.feature.unsupported', array('sqlite3','bindParam')); }
- public function bindValue($parameter, $value, $data_type)
- {throw new jException('jelix~db.error.feature.unsupported', array('sqlite3','bindValue')); }
- public function columnCount()
- { return $this->_idResult->numColumns(); }
- public function execute($parameters=null)
- {throw new jException('jelix~db.error.feature.unsupported', array('sqlite3','bindColumn')); }
- }
Documentation generated on Mon, 26 Oct 2015 21:58:30 +0100 by phpDocumentor 1.4.3