Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Hooks\RecentChangeSaveHookHandler Class Reference

Inject change information from RC into the change notification created by the onRevisionFromEditComplete hook handler and save it to wb_changes table. More...

Public Member Functions

 __construct (ChangeStore $changeStore, ChangeHolder $changeHolder, SubscriptionLookup $subscriptionLookup, ?CentralIdLookup $centralIdLookup)
 
 onRecentChange_save (RecentChange $recentChange)
 

Static Public Member Functions

static factory (CentralIdLookupFactory $centralIdLookupFactory, ChangeHolder $changeHolder, RepoDomainDbFactory $repoDomainDbFactory, Store $store)
 

Private Member Functions

 handleChange (Change $change, RecentChange $recentChange)
 
 changeNeedsDispatching (EntityChange $change)
 
 setChangeMetaData (EntityChange $change, RecentChange $rc, int $centralUserId)
 
 enqueueDispatchChangesJob (string $entityIdSerialization)
 

Private Attributes

 $changeStore
 
 $centralIdLookup
 
 $changeHolder
 
 $subscriptionLookup
 

Detailed Description

Inject change information from RC into the change notification created by the onRevisionFromEditComplete hook handler and save it to wb_changes table.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Hooks\RecentChangeSaveHookHandler::__construct ( ChangeStore $changeStore,
ChangeHolder $changeHolder,
SubscriptionLookup $subscriptionLookup,
?CentralIdLookup $centralIdLookup )

Member Function Documentation

◆ changeNeedsDispatching()

Wikibase\Repo\Hooks\RecentChangeSaveHookHandler::changeNeedsDispatching ( EntityChange $change)
private

◆ enqueueDispatchChangesJob()

Wikibase\Repo\Hooks\RecentChangeSaveHookHandler::enqueueDispatchChangesJob ( string $entityIdSerialization)
private

◆ factory()

static Wikibase\Repo\Hooks\RecentChangeSaveHookHandler::factory ( CentralIdLookupFactory $centralIdLookupFactory,
ChangeHolder $changeHolder,
RepoDomainDbFactory $repoDomainDbFactory,
Store $store )
static

◆ handleChange()

Wikibase\Repo\Hooks\RecentChangeSaveHookHandler::handleChange ( Change $change,
RecentChange $recentChange )
private

◆ onRecentChange_save()

Wikibase\Repo\Hooks\RecentChangeSaveHookHandler::onRecentChange_save ( RecentChange $recentChange)

◆ setChangeMetaData()

Wikibase\Repo\Hooks\RecentChangeSaveHookHandler::setChangeMetaData ( EntityChange $change,
RecentChange $rc,
int $centralUserId )
private

Member Data Documentation

◆ $centralIdLookup

Wikibase\Repo\Hooks\RecentChangeSaveHookHandler::$centralIdLookup
private

◆ $changeHolder

Wikibase\Repo\Hooks\RecentChangeSaveHookHandler::$changeHolder
private

◆ $changeStore

Wikibase\Repo\Hooks\RecentChangeSaveHookHandler::$changeStore
private

◆ $subscriptionLookup

Wikibase\Repo\Hooks\RecentChangeSaveHookHandler::$subscriptionLookup
private

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