MediaWiki REL1_31
ORAResult Class Reference

The oci8 extension is fairly weak and doesn't support oci_num_rows, among other things. More...

Public Member Functions

 __construct (&$db, $stmt, $unique=false)
 
 fetchObject ()
 
 fetchRow ()
 
 free ()
 
 numFields ()
 
 numRows ()
 
 seek ( $row)
 

Private Member Functions

 array_unique_md ( $array_in)
 

Private Attributes

 $columns = []
 
 $cursor
 
 $nrows
 
 $rows
 

Detailed Description

The oci8 extension is fairly weak and doesn't support oci_num_rows, among other things.

We use a wrapper class to handle that and other Oracle-specific bits, like converting column names back to lowercase.

Definition at line 11 of file ORAResult.php.

Constructor & Destructor Documentation

◆ __construct()

ORAResult::__construct ( & $db,
$stmt,
$unique = false )
Parameters
IDatabase&$db
resource$stmtA valid OCI statement identifier
bool$unique

Definition at line 38 of file ORAResult.php.

References $e, array_unique_md(), and free().

Member Function Documentation

◆ array_unique_md()

ORAResult::array_unique_md ( $array_in)
private

Definition at line 18 of file ORAResult.php.

References serialize().

Referenced by __construct().

◆ fetchObject()

ORAResult::fetchObject ( )

Definition at line 81 of file ORAResult.php.

References $ret.

◆ fetchRow()

ORAResult::fetchRow ( )

Definition at line 95 of file ORAResult.php.

References $ret.

◆ free()

ORAResult::free ( )

Definition at line 65 of file ORAResult.php.

Referenced by __construct().

◆ numFields()

ORAResult::numFields ( )

Definition at line 77 of file ORAResult.php.

◆ numRows()

ORAResult::numRows ( )

Definition at line 73 of file ORAResult.php.

References $nrows.

◆ seek()

ORAResult::seek ( $row)

Definition at line 69 of file ORAResult.php.

Member Data Documentation

◆ $columns

ORAResult::$columns = []
private

Definition at line 16 of file ORAResult.php.

◆ $cursor

ORAResult::$cursor
private

Definition at line 13 of file ORAResult.php.

◆ $nrows

ORAResult::$nrows
private

Definition at line 14 of file ORAResult.php.

Referenced by numRows().

◆ $rows

ORAResult::$rows
private

Definition at line 12 of file ORAResult.php.


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