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

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

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 (IDatabase $db)
 

Private Attributes

 $entityChangeFactory
 
 $entityIdParser
 
 $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 )
Parameters
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 ( IDatabase $db)
private

Member Data Documentation

◆ $db

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

◆ $entityChangeFactory

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

◆ $entityIdParser

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

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