MediaWiki  master
Wikimedia\Rdbms\MssqlResultWrapper Class Reference
Inheritance diagram for Wikimedia\Rdbms\MssqlResultWrapper:
Collaboration diagram for Wikimedia\Rdbms\MssqlResultWrapper:

Public Member Functions

 fetchObject ()
 
 fetchRow ()
 
 seek ( $row)
 
- Public Member Functions inherited from Wikimedia\Rdbms\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 ()
 

Private Attributes

int null $seekTo = null
 

Additional Inherited Members

- Public Attributes inherited from Wikimedia\Rdbms\ResultWrapper
resource array null $result
 Optional underlying result handle for subclass usage. More...
 
- Protected Attributes inherited from Wikimedia\Rdbms\ResultWrapper
stdClass null $currentRow = null
 
IDatabase null $db
 
int $pos = 0
 

Detailed Description

Definition at line 7 of file MssqlResultWrapper.php.

Member Function Documentation

◆ fetchObject()

Wikimedia\Rdbms\MssqlResultWrapper::fetchObject ( )
Returns
stdClass|bool

Implements Wikimedia\Rdbms\IResultWrapper.

Definition at line 14 of file MssqlResultWrapper.php.

References $res, Wikimedia\Rdbms\ResultWrapper\$result, class, and null.

◆ fetchRow()

Wikimedia\Rdbms\MssqlResultWrapper::fetchRow ( )
Returns
array|bool

Implements Wikimedia\Rdbms\IResultWrapper.

Definition at line 36 of file MssqlResultWrapper.php.

References $res, Wikimedia\Rdbms\ResultWrapper\$result, and null.

◆ seek()

Wikimedia\Rdbms\MssqlResultWrapper::seek (   $row)
Parameters
int$row
Returns
bool

Implements Wikimedia\Rdbms\IResultWrapper.

Definition at line 59 of file MssqlResultWrapper.php.

References $res, and Wikimedia\Rdbms\ResultWrapper\$result.

Member Data Documentation

◆ $seekTo

int null Wikimedia\Rdbms\MssqlResultWrapper::$seekTo = null
private

Definition at line 9 of file MssqlResultWrapper.php.


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