Provides logic to update the repo after certain changes have been performed in the client (like page moves).
More...
|
| __construct ( $repoDB, SiteLinkLookup $siteLinkLookup, LoggerInterface $logger, User $user, $siteId, Title $title) |
|
| isApplicable () |
| Whether the update can be applied to repo.
|
|
| injectJob (JobQueueGroup $jobQueueGroup) |
| Inject the current job into the job queue of the repo.
|
|
|
| getEntityId () |
| Get the EntityId that we want to update.
|
|
| getJobDelay () |
| Get the time (in seconds) for which the job execution should be delayed (if delayed jobs are enabled).
|
|
| getJobParameters () |
| Get the parameters for creating a new IJobSpecification.
|
|
| getJobName () |
| Get the name of the Job that should be run on the repo.
|
|
|
| createJob (JobQueueGroup $jobQueueGroup) |
| Returns a new job for updating the repo.
|
|
| delayJobs (JobQueueGroup $jobQueueGroup) |
|
Provides logic to update the repo after certain changes have been performed in the client (like page moves).
- Copyright
- GPL-2.0-or-later
- Author
- Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >
◆ __construct()
Wikibase\Client\UpdateRepo\UpdateRepo::__construct |
( |
|
$repoDB, |
|
|
SiteLinkLookup |
$siteLinkLookup, |
|
|
LoggerInterface |
$logger, |
|
|
User |
$user, |
|
|
|
$siteId, |
|
|
Title |
$title |
|
) |
| |
- Parameters
-
string | $repoDB | IDatabase name of the repo |
SiteLinkLookup | $siteLinkLookup | |
LoggerInterface | $logger | |
User | $user | |
string | $siteId | Global id of the client wiki |
Title | $title | Title in the client that has been changed |
◆ createJob()
Wikibase\Client\UpdateRepo\UpdateRepo::createJob |
( |
JobQueueGroup |
$jobQueueGroup | ) |
|
|
private |
Returns a new job for updating the repo.
- Parameters
-
JobQueueGroup | $jobQueueGroup | |
- Returns
- IJobSpecification
◆ delayJobs()
Wikibase\Client\UpdateRepo\UpdateRepo::delayJobs |
( |
JobQueueGroup |
$jobQueueGroup | ) |
|
|
private |
- Parameters
-
JobQueueGroup | $jobQueueGroup | |
- Returns
- bool
◆ getEntityId()
Wikibase\Client\UpdateRepo\UpdateRepo::getEntityId |
( |
| ) |
|
|
protected |
Get the EntityId that we want to update.
- Returns
- EntityId|null
◆ getJobDelay()
Wikibase\Client\UpdateRepo\UpdateRepo::getJobDelay |
( |
| ) |
|
|
protected |
Get the time (in seconds) for which the job execution should be delayed (if delayed jobs are enabled).
Defaults to the max replag of any pooled DB server + 2 seconds.
- Returns
- int
◆ getJobName()
Wikibase\Client\UpdateRepo\UpdateRepo::getJobName |
( |
| ) |
|
|
abstractprotected |
◆ getJobParameters()
Wikibase\Client\UpdateRepo\UpdateRepo::getJobParameters |
( |
| ) |
|
|
abstractprotected |
◆ injectJob()
Wikibase\Client\UpdateRepo\UpdateRepo::injectJob |
( |
JobQueueGroup |
$jobQueueGroup | ) |
|
Inject the current job into the job queue of the repo.
- Exceptions
-
- Parameters
-
JobQueueGroup | $jobQueueGroup | |
◆ isApplicable()
Wikibase\Client\UpdateRepo\UpdateRepo::isApplicable |
( |
| ) |
|
Whether the update can be applied to repo.
- Returns
- bool
◆ $entityId
Wikibase\Client\UpdateRepo\UpdateRepo::$entityId = false |
|
private |
◆ $logger
Wikibase\Client\UpdateRepo\UpdateRepo::$logger |
|
private |
◆ $repoDB
Wikibase\Client\UpdateRepo\UpdateRepo::$repoDB |
|
private |
◆ $siteId
Wikibase\Client\UpdateRepo\UpdateRepo::$siteId |
|
protected |
◆ $siteLinkLookup
Wikibase\Client\UpdateRepo\UpdateRepo::$siteLinkLookup |
|
private |
◆ $title
Wikibase\Client\UpdateRepo\UpdateRepo::$title |
|
protected |
◆ $user
Wikibase\Client\UpdateRepo\UpdateRepo::$user |
|
protected |
The documentation for this class was generated from the following file: