Source for file mssql.dbresultset.php

Documentation is available at mssql.dbresultset.php

  1. <?php
  2. /**
  3.  * @package    jelix
  4.  * @subpackage db_driver
  5.  * @author     Yann Lecommandoux
  6.  * @copyright  2008 Yann Lecommandoux
  7.  * @link      http:/localhost/
  8.  * @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
  9.  */
  10.  
  11. /**
  12.  * Layer encapsulation resultset mssql.
  13.  * @experimental
  14.  */
  15. class mssqlDbResultSet extends jDbResultSet {
  16.  
  17.     protected function  _fetch (){
  18.         return mssql_fetch_object ($this->_idResult);
  19.     }
  20.  
  21.     protected function _free (){
  22.         return mssql_free_result ($this->_idResult);
  23.     }
  24.  
  25.     protected function _rewind (){
  26.         return @mssql_data_seek $this->_idResult0);
  27.     }
  28.  
  29.     public function rowCount(){
  30.         return mssql_num_rows($this->_idResult);
  31.     }
  32.  
  33.     public function bindColumn($column&$param $type=null {
  34.         throw new jException('jelix~db.error.feature.unsupported'array('mssql','bindColumn'));
  35.     }
  36.  
  37.     public function bindParam($parameter&$variable $data_type =null$length=null,  $driver_options=null{
  38.         throw new jException('jelix~db.error.feature.unsupported'array('mssql','bindParam'));
  39.     }
  40.  
  41.     public function bindValue($parameter$value$data_type{
  42.         throw new jException('jelix~db.error.feature.unsupported'array('mssql','bindValue'));
  43.     }
  44.  
  45.     public function columnCount({
  46.         return mssql_num_fields($this->_idResult);
  47.     }
  48.  
  49.     public function execute($parameters=null{
  50.         throw new jException('jelix~db.error.feature.unsupported'array('mssql','bindColumn'));
  51.     }
  52.     
  53.     public function fetch_array(){
  54.         return mssql_fetch_array($this->_idResult);
  55.     }
  56.     
  57. }

Documentation generated on Wed, 04 Jan 2017 22:57:57 +0100 by phpDocumentor 1.4.3