tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Source for file db_recordset.class.php

Documentation is available at db_recordset.class.php

  1. <?php
  2. // *** Tangra (Application Framework and Tools for PHP)
  3. // $Id$
  4. //
  5.  
  6. /**
  7.  * Contains DB_Recordset class
  8.  *
  9.  * @package tangra_lib
  10.  * @subpackage db
  11.  */
  12.  
  13. /**
  14.  * Requires interface
  15.  */
  16. require_once(TANGRA_MAIN_DIR.'interfaces/i_db_recordset.class.php');
  17.  
  18.  
  19. /**
  20.  * DB_Recorset is intended to be returned by DB_Connection::execute method and to contain results of the SQL statement
  21.  *
  22.  *
  23.  * @package tangra_lib
  24.  * @subpackage db
  25.  *
  26.  */
  27. class DB_Recordset extends Tangra_Class implements I_DB_Recordset {
  28.     /**
  29.      * Constructor
  30.      *
  31.      */
  32.     function __construct({
  33.  
  34.     }
  35.  
  36.  
  37.     /**
  38.      * Fetches one row
  39.      *
  40.      */
  41.     abstract public function fetch_row();
  42.  
  43.  
  44.     /**
  45.      * Fetches row as object
  46.      *
  47.      */
  48.     abstract public function fetch_object();
  49.  
  50.  
  51.     /**
  52.      * Are there records left?
  53.      *
  54.      * With this method you can check if there are returned records after execute() or to check are there still left any records after fetch_row()/fetch_object() calls
  55.      *
  56.      */
  57.     abstract public function is_eof();
  58.  
  59.  
  60.     /**
  61.      * closing the recorset
  62.      *
  63.      */
  64.     abstract public function close();
  65.  
  66.  
  67.     /**
  68.      * Destructor
  69.      *
  70.      */
  71.     function __destruct({
  72.  
  73.     }
  74. }