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

Class: DB_Recordset

Source Location: /db/db_recordset.class.php

Class DB_Recordset

Class Overview

Implements interfaces:

DB_Recorset is intended to be returned by DB_Connection::execute method and to contain results of the SQL statement

Located in /db/db_recordset.class.php [line 27]

Tangra_Class
   |
   --DB_Recordset

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Tangra_Class

Tangra_Class::get_class_name()
Alias of get_class(). Exist because of historical reasons.
Tangra_Class::__set()
Overides PHP built-in method and just throws exception if called. Purpose - to "forbid" autosetting of nonexisting class properties.

[ Top ]
Method Summary
DB_Recordset   __construct()   Constructor
void   __destruct()   Destructor
void   close()   closing the recorset
void   fetch_object()   Fetches row as object
void   fetch_row()   Fetches one row
void   is_eof()   Are there records left?

[ Top ]
Methods
Constructor __construct  [line 32]

  DB_Recordset __construct( )

Constructor



[ Top ]
Destructor __destruct  [line 71]

  void __destruct( )

Destructor



[ Top ]
close  [line 64]

  void close( )

closing the recorset


API Tags:
Abstract:  
Access:  public


Implementation of:
I_DB_Recordset::close()
Closes recordeset

[ Top ]
fetch_object  [line 48]

  void fetch_object( )

Fetches row as object


API Tags:
Abstract:  
Access:  public


Implementation of:
I_DB_Recordset::fetch_object()
Fetches data as object

[ Top ]
fetch_row  [line 41]

  void fetch_row( )

Fetches one row


API Tags:
Abstract:  
Access:  public


Implementation of:
I_DB_Recordset::fetch_row()
Fetches row as array

[ Top ]
is_eof  [line 57]

  void is_eof( )

Are there records left?

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


API Tags:
Abstract:  
Access:  public


Implementation of:
I_DB_Recordset::is_eof()
Is end of file/data

[ Top ]