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

Source for file i_db_recordset.class.php

Documentation is available at i_db_recordset.class.php

  1. <?php
  2. // *** Tangra (Application Framework and Tools for PHP)
  3. // $Id$
  4. //
  5.  
  6.  
  7. /**
  8.  * Contains interface I_DB_Recordset
  9.  *
  10.  * @package tangra_lib
  11.  * @subpackage interfaces
  12.  *
  13.  */
  14.  
  15. /**
  16.  * Methods that Recorset objects have to provide
  17.  *
  18.  * @package tangra_lib
  19.  * @subpackage interfaces
  20.  */
  21. interface I_DB_Recordset  {
  22.     /**
  23.      * Fetches row as array
  24.      *
  25.      * Array may be associative or normal or combined
  26.      *
  27.      */
  28.     public function fetch_row();
  29.  
  30.     /**
  31.      * Fetches data as object
  32.      *
  33.      */
  34.     public function fetch_object();
  35.  
  36.     /**
  37.      * Is end of file/data
  38.      *
  39.      */
  40.     public function is_eof();
  41.  
  42.  
  43.     /**
  44.      * Alias of is_eof()
  45.      *
  46.      */
  47.     public function is_eod();
  48.  
  49.     /**
  50.      * Closes recordeset
  51.      *
  52.      */
  53.     public function close();
  54. }