Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\UpdateRepo\UpdateRepoJob Class Reference

Job template for updating the repo after a change in client. More...

+ Inheritance diagram for Wikibase\Repo\UpdateRepo\UpdateRepoJob:
+ Collaboration diagram for Wikibase\Repo\UpdateRepo\UpdateRepoJob:

Public Member Functions

 getSummary ()
 Get a Summary object for the edit.
 
 run ()
 

Protected Member Functions

 initRepoJobServices (EntityLookup $entityLookup, EntityStore $entityStore, SummaryFormatter $summaryFormatter, LoggerInterface $logger, MediaWikiEditEntityFactory $editEntityFactory, SettingsArray $settings)
 
 initRepoJobServicesFromGlobalState ()
 Initialize repo services from global state.
 
 verifyValid (Item $item)
 Whether the propagated update is valid (and thus should be applied)
 
 applyChanges (Item $item)
 Apply the changes needed to the given Item.
 

Protected Attributes

 $entityLookup
 
 $entityStore
 
 $summaryFormatter
 
 $logger
 

Private Member Functions

 getItem ()
 
 saveChanges (Item $item, User $user)
 Save the new version of the given item.
 
 getUser (string $name)
 

Private Attributes

 $editEntityFactory
 
 $tags
 

Detailed Description

Job template for updating the repo after a change in client.

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

Member Function Documentation

◆ applyChanges()

Wikibase\Repo\UpdateRepo\UpdateRepoJob::applyChanges ( Item $item)
abstractprotected

Apply the changes needed to the given Item.

Reimplemented in Wikibase\Repo\UpdateRepo\UpdateRepoOnDeleteJob, and Wikibase\Repo\UpdateRepo\UpdateRepoOnMoveJob.

◆ getItem()

Wikibase\Repo\UpdateRepo\UpdateRepoJob::getItem ( )
private

◆ getSummary()

Wikibase\Repo\UpdateRepo\UpdateRepoJob::getSummary ( )
abstract

Get a Summary object for the edit.

Reimplemented in Wikibase\Repo\UpdateRepo\UpdateRepoOnDeleteJob, and Wikibase\Repo\UpdateRepo\UpdateRepoOnMoveJob.

◆ getUser()

Wikibase\Repo\UpdateRepo\UpdateRepoJob::getUser ( string $name)
private
Returns
User|bool

◆ initRepoJobServices()

Wikibase\Repo\UpdateRepo\UpdateRepoJob::initRepoJobServices ( EntityLookup $entityLookup,
EntityStore $entityStore,
SummaryFormatter $summaryFormatter,
LoggerInterface $logger,
MediaWikiEditEntityFactory $editEntityFactory,
SettingsArray $settings )
protected

◆ initRepoJobServicesFromGlobalState()

Wikibase\Repo\UpdateRepo\UpdateRepoJob::initRepoJobServicesFromGlobalState ( )
abstractprotected

Initialize repo services from global state.

Reimplemented in Wikibase\Repo\UpdateRepo\UpdateRepoOnDeleteJob, and Wikibase\Repo\UpdateRepo\UpdateRepoOnMoveJob.

◆ run()

Wikibase\Repo\UpdateRepo\UpdateRepoJob::run ( )
Returns
bool success

◆ saveChanges()

Wikibase\Repo\UpdateRepo\UpdateRepoJob::saveChanges ( Item $item,
User $user )
private

Save the new version of the given item.

◆ verifyValid()

Wikibase\Repo\UpdateRepo\UpdateRepoJob::verifyValid ( Item $item)
abstractprotected

Whether the propagated update is valid (and thus should be applied)

Reimplemented in Wikibase\Repo\UpdateRepo\UpdateRepoOnDeleteJob, and Wikibase\Repo\UpdateRepo\UpdateRepoOnMoveJob.

Member Data Documentation

◆ $editEntityFactory

Wikibase\Repo\UpdateRepo\UpdateRepoJob::$editEntityFactory
private

◆ $entityLookup

Wikibase\Repo\UpdateRepo\UpdateRepoJob::$entityLookup
protected

◆ $entityStore

Wikibase\Repo\UpdateRepo\UpdateRepoJob::$entityStore
protected

◆ $logger

Wikibase\Repo\UpdateRepo\UpdateRepoJob::$logger
protected

◆ $summaryFormatter

Wikibase\Repo\UpdateRepo\UpdateRepoJob::$summaryFormatter
protected

◆ $tags

Wikibase\Repo\UpdateRepo\UpdateRepoJob::$tags
private

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