Wikibase
MediaWiki Wikibase extension
|
Allows accessing changes stored in a database. More...
Public Member Functions | |
__construct (EntityChangeFactory $entityChangeFactory, EntityIdParser $entityIdParser, $wiki=false) | |
getRecordId ( $rec) | |
Returns the sequential ID of the given EntityChange. More... | |
loadChunk ( $start, $size) | |
loadByChangeIds (array $ids) | |
loadByRevisionId ( $revisionId, $mode=self::FROM_REPLICA) | |
Public Attributes | |
const | FROM_MASTER = 'master' |
Flag to indicate that we need to query a master database. More... | |
const | FROM_REPLICA = 'replica' |
Private Member Functions | |
loadChanges (array $where, array $options, $method, $mode=DB_REPLICA) | |
changesFromRows (IResultWrapper $rows) | |
Private Attributes | |
$entityChangeFactory | |
$entityIdParser | |
Allows accessing changes stored in a database.
Wikibase\Lib\Store\Sql\EntityChangeLookup::__construct | ( | EntityChangeFactory | $entityChangeFactory, |
EntityIdParser | $entityIdParser, | ||
$wiki = false |
|||
) |
EntityChangeFactory | $entityChangeFactory | |
EntityIdParser | $entityIdParser | |
string | bool | $wiki | The target wiki's name. This must be an ID that LBFactory can understand. |
|
private |
IResultWrapper | $rows |
Wikibase\Lib\Store\Sql\EntityChangeLookup::getRecordId | ( | $rec | ) |
Returns the sequential ID of the given EntityChange.
EntityChange | $rec |
Implements Wikibase\Lib\Store\ChunkAccess.
Wikibase\Lib\Store\Sql\EntityChangeLookup::loadByChangeIds | ( | array | $ids | ) |
int[] | $ids |
Wikibase\Lib\Store\Sql\EntityChangeLookup::loadByRevisionId | ( | $revisionId, | |
$mode = self::FROM_REPLICA |
|||
) |
int | $revisionId | |
string | $mode | One of the self::FROM_... constants. |
|
private |
array | $where | |
array | $options | |
string | $method | |
int | $mode | (DB_REPLICA or DB_MASTER) |
Wikibase\Lib\Store\Sql\EntityChangeLookup::loadChunk | ( | $start, | |
$size | |||
) |
|
private |
|
private |
const Wikibase\Lib\Store\Sql\EntityChangeLookup::FROM_MASTER = 'master' |
Flag to indicate that we need to query a master database.
const Wikibase\Lib\Store\Sql\EntityChangeLookup::FROM_REPLICA = 'replica' |