Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Hooks\DeleteDispatcher Class Reference

Hook for dispatching DeleteDispatchNotificationJob on repo which in turn will fetch archived revisions and dispatch deletion jobs on the clients. More...

+ Inheritance diagram for Wikibase\Repo\Hooks\DeleteDispatcher:
+ Collaboration diagram for Wikibase\Repo\Hooks\DeleteDispatcher:

Public Member Functions

 __construct (callable $jobQueueGroupFactory, EntityContentFactory $entityContentFactory, array $localClientDatabases)
 
 onArticleDeleteComplete ( $wikiPage, $user, $reason, $id, $content, $logEntry, $archivedRevisionCount)
 

Static Public Member Functions

static factory (EntityContentFactory $entityContentFactory, SettingsArray $repoSettings)
 

Private Attributes

 $jobQueueGroupFactory
 
 $entityContentFactory
 
 $localClientDatabases
 

Detailed Description

Hook for dispatching DeleteDispatchNotificationJob on repo which in turn will fetch archived revisions and dispatch deletion jobs on the clients.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Hooks\DeleteDispatcher::__construct ( callable  $jobQueueGroupFactory,
EntityContentFactory  $entityContentFactory,
array  $localClientDatabases 
)
Parameters
callable$jobQueueGroupFactory
EntityContentFactory$entityContentFactory
array$localClientDatabases

Member Function Documentation

◆ factory()

static Wikibase\Repo\Hooks\DeleteDispatcher::factory ( EntityContentFactory  $entityContentFactory,
SettingsArray  $repoSettings 
)
static

◆ onArticleDeleteComplete()

Wikibase\Repo\Hooks\DeleteDispatcher::onArticleDeleteComplete (   $wikiPage,
  $user,
  $reason,
  $id,
  $content,
  $logEntry,
  $archivedRevisionCount 
)

Member Data Documentation

◆ $entityContentFactory

Wikibase\Repo\Hooks\DeleteDispatcher::$entityContentFactory
private

◆ $jobQueueGroupFactory

Wikibase\Repo\Hooks\DeleteDispatcher::$jobQueueGroupFactory
private

◆ $localClientDatabases

Wikibase\Repo\Hooks\DeleteDispatcher::$localClientDatabases
private

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