MediaWiki  REL1_19
IBM_DB2Result Class Reference

Wrapper to address lack of certain operations in the DB2 driver ( seek, num_rows ) More...

List of all members.

Public Member Functions

 __construct ($db, $result, $num_rows, $sql, $columns)
 Construct and initialize a wrapper for DB2 query results.
 fetchObject ()
 Return a row from the result set in object format.
 fetchRow ()
 Return a row form the result set in array format.
 freeResult ()
 Free a DB2 result object.
 getNum_rows ()
 Get the number of rows in the result set.
 getResult ()
 Unwrap the DB2 query results.

Private Attributes

 $columns = array()
 $current_pos
 $db
 $loadedLines = 0
 $num_rows
 $result
 $resultSet = array()
 $sql

Detailed Description

Wrapper to address lack of certain operations in the DB2 driver ( seek, num_rows )

Since:
1.19

Definition at line 112 of file DatabaseIbm_db2.php.


Constructor & Destructor Documentation

IBM_DB2Result::__construct ( db,
result,
num_rows,
sql,
columns 
)

Construct and initialize a wrapper for DB2 query results.

Parameters:
$dbDatabase
$resultObject
$num_rowsInteger
$sqlString
$columnsArray

Definition at line 131 of file DatabaseIbm_db2.php.

References $db, $num_rows, $result, and $sql.


Member Function Documentation

Return a row from the result set in object format.

Returns:
mixed Object on success, false on failure.

Definition at line 189 of file DatabaseIbm_db2.php.

References fetchRow().

Here is the call graph for this function:

Return a row form the result set in array format.

Returns:
mixed Array on success, false on failure
Exceptions:
DBUnexpectedError

Definition at line 212 of file DatabaseIbm_db2.php.

Referenced by fetchObject().

Here is the caller graph for this function:

Free a DB2 result object.

Exceptions:
DBUnexpectedError

Definition at line 239 of file DatabaseIbm_db2.php.

Get the number of rows in the result set.

Returns:
integer

Definition at line 181 of file DatabaseIbm_db2.php.

Unwrap the DB2 query results.

Returns:
mixed Object on success, false on failure

Definition at line 170 of file DatabaseIbm_db2.php.


Member Data Documentation

IBM_DB2Result::$columns = array() [private]

Definition at line 117 of file DatabaseIbm_db2.php.

IBM_DB2Result::$current_pos [private]

Definition at line 116 of file DatabaseIbm_db2.php.

IBM_DB2Result::$db [private]

Definition at line 113 of file DatabaseIbm_db2.php.

Referenced by __construct().

IBM_DB2Result::$loadedLines = 0 [private]

Definition at line 121 of file DatabaseIbm_db2.php.

IBM_DB2Result::$num_rows [private]

Definition at line 115 of file DatabaseIbm_db2.php.

Referenced by __construct().

IBM_DB2Result::$result [private]

Definition at line 114 of file DatabaseIbm_db2.php.

Referenced by __construct().

IBM_DB2Result::$resultSet = array() [private]

Definition at line 120 of file DatabaseIbm_db2.php.

IBM_DB2Result::$sql [private]

Definition at line 118 of file DatabaseIbm_db2.php.

Referenced by __construct().


The documentation for this class was generated from the following file: