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