Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\Store\AddUsagesForPageJob Class Reference

Job for scheduled invocation of UsageUpdater::addUsagesForPage. More...

+ Inheritance diagram for Wikibase\Client\Store\AddUsagesForPageJob:
+ Collaboration diagram for Wikibase\Client\Store\AddUsagesForPageJob:

Public Member Functions

 __construct (Title $title, array $params)
 
 overrideServices (UsageUpdater $usageUpdater, EntityIdParser $idParser)
 Service override for testing.
 
 run ()
 

Static Public Member Functions

static newSpec (Title $title, array $usages)
 Spec constructor, for creating JobSpecifications to be pushed to the job queue.
 

Private Member Functions

 getUsages ()
 

Private Attributes

 $usageUpdater
 
 $idParser
 

Detailed Description

Job for scheduled invocation of UsageUpdater::addUsagesForPage.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Store\AddUsagesForPageJob::__construct ( Title  $title,
array  $params 
)
Parameters
Title$title
array$params

Member Function Documentation

◆ getUsages()

Wikibase\Client\Store\AddUsagesForPageJob::getUsages ( )
private
Returns
EntityUsage[]

◆ newSpec()

static Wikibase\Client\Store\AddUsagesForPageJob::newSpec ( Title  $title,
array  $usages 
)
static

Spec constructor, for creating JobSpecifications to be pushed to the job queue.

Parameters
Title$title
EntityUsage[]$usages
Returns
JobSpecification

◆ overrideServices()

Wikibase\Client\Store\AddUsagesForPageJob::overrideServices ( UsageUpdater  $usageUpdater,
EntityIdParser  $idParser 
)

Service override for testing.

Parameters
UsageUpdater$usageUpdater
EntityIdParser$idParser

◆ run()

Wikibase\Client\Store\AddUsagesForPageJob::run ( )
See also
Job::run
Returns
bool

Member Data Documentation

◆ $idParser

Wikibase\Client\Store\AddUsagesForPageJob::$idParser
private

◆ $usageUpdater

Wikibase\Client\Store\AddUsagesForPageJob::$usageUpdater
private

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