Wikibase
MediaWiki Wikibase extension
|
Class for generating and submitting change notifications in different situations. More...
Public Member Functions | |
__construct (EntityChangeFactory $changeFactory, array $changeTransmitters, ?CentralIdLookup $centralIdLookup) | |
notifyOnPageModified (RevisionRecord $current, RevisionRecord $parent) | |
This method constructs and sends the appropriate notifications (if any) when a wiki page containing an EntityContent was modified. More... | |
Private Member Functions | |
getCentralUserId (User $user) | |
transmitChange (EntityChange $change) | |
Transmit changes via all registered transmitters. More... | |
Private Attributes | |
$changeFactory | |
$changeTransmitters | |
$centralIdLookup | |
Class for generating and submitting change notifications in different situations.
This is a helper intended for use in hook handler functions.
Wikibase\Repo\Notifications\ChangeNotifier::__construct | ( | EntityChangeFactory | $changeFactory, |
array | $changeTransmitters, | ||
?CentralIdLookup | $centralIdLookup | ||
) |
EntityChangeFactory | $changeFactory | |
ChangeTransmitter[] | $changeTransmitters | |
CentralIdLookup | null | $centralIdLookup | CentralIdLookup, or null if this repository is not connected to a central user system, see CentralIdLookup::factoryNonLocal. |
|
private |
User | $user | Repository user |
Wikibase\Repo\Notifications\ChangeNotifier::notifyOnPageModified | ( | RevisionRecord | $current, |
RevisionRecord | $parent | ||
) |
This method constructs and sends the appropriate notifications (if any) when a wiki page containing an EntityContent was modified.
RevisionRecord | $current | |
RevisionRecord | $parent |
InvalidArgumentException | |
ChangeTransmitterException |
|
private |
Transmit changes via all registered transmitters.
EntityChange | $change |
|
private |
|
private |
|
private |