MediaWiki  1.28.0
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 30 of file DatabaseOracle.php.

Constructor & Destructor Documentation

ORAResult::__construct ( $db,
  $stmt,
  $unique = false 
)
Parameters
IDatabase$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

ORAResult::array_unique_md (   $array_in)
private

Definition at line 37 of file DatabaseOracle.php.

References as, and serialize().

Referenced by __construct().

ORAResult::fetchObject ( )

Definition at line 100 of file DatabaseOracle.php.

References $ret, and as.

ORAResult::fetchRow ( )

Definition at line 114 of file DatabaseOracle.php.

References $ret, and as.

ORAResult::free ( )

Definition at line 84 of file DatabaseOracle.php.

Referenced by __construct().

ORAResult::numFields ( )

Definition at line 96 of file DatabaseOracle.php.

ORAResult::numRows ( )

Definition at line 92 of file DatabaseOracle.php.

References $nrows.

ORAResult::seek (   $row)

Definition at line 88 of file DatabaseOracle.php.

Member Data Documentation

ORAResult::$columns = []
private

Definition at line 35 of file DatabaseOracle.php.

ORAResult::$cursor
private

Definition at line 32 of file DatabaseOracle.php.

ORAResult::$nrows
private

Definition at line 33 of file DatabaseOracle.php.

Referenced by numRows().

ORAResult::$rows
private

Definition at line 31 of file DatabaseOracle.php.


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