MediaWiki  1.23.2
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 = array()
 
 $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 30 of file DatabaseOracle.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 57 of file DatabaseOracle.php.

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

Member Function Documentation

◆ array_unique_md()

ORAResult::array_unique_md (   $array_in)
private

Definition at line 37 of file DatabaseOracle.php.

References $hash, array(), and as.

Referenced by __construct().

◆ fetchObject()

ORAResult::fetchObject ( )

Definition at line 100 of file DatabaseOracle.php.

References $ret, and as.

◆ fetchRow()

ORAResult::fetchRow ( )

Definition at line 114 of file DatabaseOracle.php.

References $ret, array(), and as.

◆ free()

ORAResult::free ( )

Definition at line 84 of file DatabaseOracle.php.

Referenced by __construct().

◆ numFields()

ORAResult::numFields ( )

Definition at line 96 of file DatabaseOracle.php.

◆ numRows()

ORAResult::numRows ( )

Definition at line 92 of file DatabaseOracle.php.

References $nrows.

◆ seek()

ORAResult::seek (   $row)

Definition at line 88 of file DatabaseOracle.php.

Member Data Documentation

◆ $columns

ORAResult::$columns = array()
private

Definition at line 35 of file DatabaseOracle.php.

◆ $cursor

ORAResult::$cursor
private

Definition at line 32 of file DatabaseOracle.php.

◆ $nrows

ORAResult::$nrows
private

Definition at line 33 of file DatabaseOracle.php.

Referenced by numRows().

◆ $rows

ORAResult::$rows
private

Definition at line 31 of file DatabaseOracle.php.


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