Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Store\Sql\EntityChangeLookup Class Reference

Allows accessing changes stored in a database. More...

+ Collaboration diagram for Wikibase\Lib\Store\Sql\EntityChangeLookup:

Public Member Functions

 __construct (EntityChangeFactory $entityChangeFactory, EntityIdParser $entityIdParser, RepoDomainDb $db)
 
 loadByChangeIds (array $ids)
 
 loadByEntityIdFromPrimary (string $entityId)
 
 loadChangesBefore (string $thisTimeOrOlder, int $batchSize, int $offset)
 

Private Member Functions

 newEntityChangeSelectQueryBuilder (IReadableDatabase $db)
 

Private Attributes

EntityChangeFactory $entityChangeFactory
 
EntityIdParser $entityIdParser
 
RepoDomainDb $db
 

Detailed Description

Allows accessing changes stored in a database.

Author
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Store\Sql\EntityChangeLookup::__construct ( EntityChangeFactory $entityChangeFactory,
EntityIdParser $entityIdParser,
RepoDomainDb $db )

Member Function Documentation

◆ loadByChangeIds()

Wikibase\Lib\Store\Sql\EntityChangeLookup::loadByChangeIds ( array $ids)
Parameters
int[]$ids
Returns
EntityChange[]

◆ loadByEntityIdFromPrimary()

Wikibase\Lib\Store\Sql\EntityChangeLookup::loadByEntityIdFromPrimary ( string $entityId)
Parameters
string$entityId
Returns
EntityChange[]

◆ loadChangesBefore()

Wikibase\Lib\Store\Sql\EntityChangeLookup::loadChangesBefore ( string $thisTimeOrOlder,
int $batchSize,
int $offset )
Parameters
string$thisTimeOrOldermaximum timestamp of changes to returns (TS_MW format)
int$batchSizemaximum number of changes to return
int$offsetskip this many changes
Returns
EntityChange[]

◆ newEntityChangeSelectQueryBuilder()

Wikibase\Lib\Store\Sql\EntityChangeLookup::newEntityChangeSelectQueryBuilder ( IReadableDatabase $db)
private

Member Data Documentation

◆ $db

RepoDomainDb Wikibase\Lib\Store\Sql\EntityChangeLookup::$db
private

◆ $entityChangeFactory

EntityChangeFactory Wikibase\Lib\Store\Sql\EntityChangeLookup::$entityChangeFactory
private

◆ $entityIdParser

EntityIdParser Wikibase\Lib\Store\Sql\EntityChangeLookup::$entityIdParser
private

The documentation for this class was generated from the following file: