MediaWiki  master
IResultWrapper.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Wikimedia\Rdbms;
4 
5 use Countable;
6 use OutOfBoundsException;
7 use SeekableIterator;
8 use stdClass;
9 
26 interface IResultWrapper extends Countable, SeekableIterator {
32  public function numRows();
33 
39  public function count();
40 
49  public function fetchObject();
50 
58  public function fetchRow();
59 
67  public function seek( $pos );
68 
75  public function free();
76 
80  public function current();
81 
85  public function key();
86 
91  public function next();
92 
99  public function getFieldNames();
100 }
Wikimedia\Rdbms\IResultWrapper\fetchRow
fetchRow()
Fetch the next row from the given result object, in associative array form.
Wikimedia\Rdbms
Definition: ChronologyProtector.php:24
Wikimedia\Rdbms\IResultWrapper\next
next()
Wikimedia\Rdbms\IResultWrapper
Result wrapper for grabbing data queried from an IDatabase object.
Definition: IResultWrapper.php:26
Wikimedia\Rdbms\IResultWrapper\count
count()
Get the number of rows in a result object.
Wikimedia\Rdbms\IResultWrapper\fetchObject
fetchObject()
Fetch the next row from the given result object, in object form.
Wikimedia\Rdbms\IResultWrapper\key
key()
Wikimedia\Rdbms\IResultWrapper\current
current()
Wikimedia\Rdbms\IResultWrapper\numRows
numRows()
Get the number of rows in a result object.
Wikimedia\Rdbms\IResultWrapper\seek
seek( $pos)
Change the position of the cursor in a result object.
Wikimedia\Rdbms\IResultWrapper\getFieldNames
getFieldNames()
Get the names of the fields in the result.
Wikimedia\Rdbms\IResultWrapper\free
free()
Free a result object.