Wikibase
MediaWiki Wikibase extension
Wikibase\Client\UpdateRepo\UpdateRepoOnMove Class Reference

Provides logic to update the repo after page moves in the client. More...

+ Inheritance diagram for Wikibase\Client\UpdateRepo\UpdateRepoOnMove:
+ Collaboration diagram for Wikibase\Client\UpdateRepo\UpdateRepoOnMove:

Public Member Functions

 __construct (SiteLinkLookup $siteLinkLookup, LoggerInterface $logger, ClientDomainDb $clientDomainDb, UserIdentity $user, $siteId, Title $oldTitle, Title $newTitle)
 
- Public Member Functions inherited from Wikibase\Client\UpdateRepo\UpdateRepo
 __construct (SiteLinkLookup $siteLinkLookup, LoggerInterface $logger, ClientDomainDb $clientDb, UserIdentity $user, $siteId, Title $title)
 
 isApplicable ()
 Whether the update can be applied to repo. More...
 
 injectJob (JobQueueGroup $jobQueueGroup)
 Inject the current job into the job queue of the repo. More...
 

Protected Member Functions

 getJobName ()
 Get the name of the Job that should be run on the repo. More...
 
 getJobParameters ()
 Get the parameters for creating a new JobSpecification. More...
 
- Protected Member Functions inherited from Wikibase\Client\UpdateRepo\UpdateRepo
 getEntityId ()
 Get the EntityId that we want to update. More...
 
 getJobDelay ()
 Get the time (in seconds) for which the job execution should be delayed (if delayed jobs are enabled). More...
 

Private Attributes

 $newTitle
 

Additional Inherited Members

- Protected Attributes inherited from Wikibase\Client\UpdateRepo\UpdateRepo
 $user
 
 $siteId
 
 $title
 

Detailed Description

Provides logic to update the repo after page moves in the client.

Author
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\UpdateRepo\UpdateRepoOnMove::__construct ( SiteLinkLookup  $siteLinkLookup,
LoggerInterface  $logger,
ClientDomainDb  $clientDomainDb,
UserIdentity  $user,
  $siteId,
Title  $oldTitle,
Title  $newTitle 
)
Parameters
SiteLinkLookup$siteLinkLookup
LoggerInterface$logger
UserIdentity$user
string$siteIdGlobal id of the client wiki
Title$oldTitle
Title$newTitle

Member Function Documentation

◆ getJobName()

Wikibase\Client\UpdateRepo\UpdateRepoOnMove::getJobName ( )
protected

Get the name of the Job that should be run on the repo.

Returns
string

Reimplemented from Wikibase\Client\UpdateRepo\UpdateRepo.

◆ getJobParameters()

Wikibase\Client\UpdateRepo\UpdateRepoOnMove::getJobParameters ( )
protected

Get the parameters for creating a new JobSpecification.

Returns
array

Reimplemented from Wikibase\Client\UpdateRepo\UpdateRepo.

Member Data Documentation

◆ $newTitle

Wikibase\Client\UpdateRepo\UpdateRepoOnMove::$newTitle
private

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