Allows accessing changes stored in a database.
More...
|
const | FROM_MASTER = 'master' |
| Flag to indicate that we need to query a master database.
|
|
const | FROM_REPLICA = 'replica' |
|
Allows accessing changes stored in a database.
- Copyright
- GPL-2.0-or-later
- Author
- Marius Hoch
◆ __construct()
Wikibase\Lib\Store\Sql\EntityChangeLookup::__construct |
( |
EntityChangeFactory |
$entityChangeFactory, |
|
|
EntityIdParser |
$entityIdParser, |
|
|
|
$wiki = false |
|
) |
| |
- Parameters
-
EntityChangeFactory | $entityChangeFactory | |
EntityIdParser | $entityIdParser | |
string | bool | $wiki | The target wiki's name. This must be an ID that LBFactory can understand. |
◆ changesFromRows()
Wikibase\Lib\Store\Sql\EntityChangeLookup::changesFromRows |
( |
IResultWrapper |
$rows | ) |
|
|
private |
- Parameters
-
- Returns
- EntityChange[]
◆ getRecordId()
Wikibase\Lib\Store\Sql\EntityChangeLookup::getRecordId |
( |
|
$rec | ) |
|
◆ loadByChangeIds()
Wikibase\Lib\Store\Sql\EntityChangeLookup::loadByChangeIds |
( |
array |
$ids | ) |
|
- Parameters
-
- Returns
- EntityChange[]
◆ loadByRevisionId()
Wikibase\Lib\Store\Sql\EntityChangeLookup::loadByRevisionId |
( |
|
$revisionId, |
|
|
|
$mode = self::FROM_REPLICA |
|
) |
| |
- Parameters
-
int | $revisionId | |
string | $mode | One of the self::FROM_... constants. |
- Returns
- EntityChange|null
◆ loadChanges()
Wikibase\Lib\Store\Sql\EntityChangeLookup::loadChanges |
( |
array |
$where, |
|
|
array |
$options, |
|
|
|
$method, |
|
|
|
$mode = DB_REPLICA |
|
) |
| |
|
private |
- Parameters
-
array | $where | |
array | $options | |
string | $method | |
int | $mode | (DB_REPLICA or DB_MASTER) |
- Returns
- EntityChange[]
◆ loadChunk()
Wikibase\Lib\Store\Sql\EntityChangeLookup::loadChunk |
( |
|
$start, |
|
|
|
$size |
|
) |
| |
◆ $entityChangeFactory
Wikibase\Lib\Store\Sql\EntityChangeLookup::$entityChangeFactory |
|
private |
◆ $entityIdParser
Wikibase\Lib\Store\Sql\EntityChangeLookup::$entityIdParser |
|
private |
◆ FROM_MASTER
const Wikibase\Lib\Store\Sql\EntityChangeLookup::FROM_MASTER = 'master' |
Flag to indicate that we need to query a master database.
◆ FROM_REPLICA
const Wikibase\Lib\Store\Sql\EntityChangeLookup::FROM_REPLICA = 'replica' |
The documentation for this class was generated from the following file: