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, $result)
 
 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 ( $pos)
 Change the position of the cursor in a result object. More...
 
 valid ()
 

Private Attributes

int null $seekTo = null
 

Additional Inherited Members

- Static Public Member Functions inherited from Wikimedia\Rdbms\ResultWrapper
static & unwrap (&$res)
 Get the underlying RDBMS driver-specific result resource. More...
 
- Protected Attributes inherited from Wikimedia\Rdbms\ResultWrapper
stdClass bool null $currentRow
 
IDatabase $db
 
int $pos = 0
 
mixed null $result
 RDBMS driver-specific result resource. More...
 

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: