MediaWiki  REL1_20
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 127 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:
$dbDatabaseBase
$resultObject
$num_rowsInteger
$sqlString
$columnsArray

Definition at line 146 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 204 of file DatabaseIbm_db2.php.

References fetchRow().

Return a row form the result set in array format.

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

Definition at line 227 of file DatabaseIbm_db2.php.

Referenced by fetchObject().

Free a DB2 result object.

Exceptions:
DBUnexpectedError

Definition at line 254 of file DatabaseIbm_db2.php.

Get the number of rows in the result set.

Returns:
integer

Definition at line 196 of file DatabaseIbm_db2.php.

Unwrap the DB2 query results.

Returns:
mixed Object on success, false on failure

Definition at line 185 of file DatabaseIbm_db2.php.


Member Data Documentation

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

Definition at line 132 of file DatabaseIbm_db2.php.

IBM_DB2Result::$current_pos [private]

Definition at line 131 of file DatabaseIbm_db2.php.

IBM_DB2Result::$db [private]

Definition at line 128 of file DatabaseIbm_db2.php.

Referenced by __construct().

IBM_DB2Result::$loadedLines = 0 [private]

Definition at line 136 of file DatabaseIbm_db2.php.

IBM_DB2Result::$num_rows [private]

Definition at line 130 of file DatabaseIbm_db2.php.

Referenced by __construct().

IBM_DB2Result::$result [private]

Definition at line 129 of file DatabaseIbm_db2.php.

Referenced by __construct().

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

Definition at line 135 of file DatabaseIbm_db2.php.

IBM_DB2Result::$sql [private]

Definition at line 133 of file DatabaseIbm_db2.php.

Referenced by __construct().


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