MediaWiki  1.28.0
FakeResultWrapper Class Reference

Overloads the relevant methods of the real ResultsWrapper so it doesn't go anywhere near an actual database. More...

Inheritance diagram for FakeResultWrapper:
Collaboration diagram for FakeResultWrapper:

Public Member Functions

 fetchObject ()
 
 fetchRow ()
 
 free ()
 
 next ()
 
 numRows ()
 
 rewind ()
 
 seek ($row)
 
- Public Member Functions inherited from ResultWrapper
 __construct (IDatabase $db=null, $result)
 Create a row iterator from a result resource and an optional Database object. More...
 
 current ()
 
 fetchObject ()
 Fetch the next row from the given result object, in object form. More...
 
 fetchRow ()
 Fetch the next row from the given result object, in associative array form. More...
 
 free ()
 Free a result object. More...
 
 key ()
 
 next ()
 
 numRows ()
 Get the number of rows in a result object. More...
 
 rewind ()
 
 seek ($row)
 Change the position of the cursor in a result object. More...
 
 valid ()
 

Public Attributes

function __construct array $result $rows
 stdClass[] More...
 
- Public Attributes inherited from ResultWrapper
resource array null $result
 Optional underlying result handle for subclass usage. More...
 

Additional Inherited Members

- Protected Attributes inherited from ResultWrapper
stdClass null $currentRow = null
 
IDatabase null $db
 
int $pos = 0
 

Detailed Description

Overloads the relevant methods of the real ResultsWrapper so it doesn't go anywhere near an actual database.

Definition at line 6 of file FakeResultWrapper.php.

Member Function Documentation

FakeResultWrapper::fetchObject ( )

Definition at line 41 of file FakeResultWrapper.php.

References ResultWrapper\$currentRow, and fetchRow().

Referenced by next().

FakeResultWrapper::fetchRow ( )

Definition at line 20 of file FakeResultWrapper.php.

References ResultWrapper\$currentRow, and ResultWrapper\$pos.

Referenced by fetchObject().

FakeResultWrapper::free ( )

Definition at line 38 of file FakeResultWrapper.php.

FakeResultWrapper::next ( )

Definition at line 55 of file FakeResultWrapper.php.

References fetchObject().

FakeResultWrapper::numRows ( )

Definition at line 16 of file FakeResultWrapper.php.

FakeResultWrapper::rewind ( )

Definition at line 50 of file FakeResultWrapper.php.

FakeResultWrapper::seek (   $row)

Definition at line 34 of file FakeResultWrapper.php.

Member Data Documentation

function __construct array $result FakeResultWrapper::$rows
Initial value:
{
parent::__construct( null, $rows )

stdClass[]

Parameters
stdClass[]$rows

Definition at line 12 of file FakeResultWrapper.php.


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