Wikibase
MediaWiki Wikibase extension
|
Class for generating and submitting change notifications in different situations. More...
Public Member Functions | |
__construct (WikiPageActionEntityChangeFactory $changeFactory, array $changeTransmitters) | |
notifyOnPageDeleted (EntityContent $content, UserIdentity $user, $timestamp) | |
This method constructs and sends the appropriate notifications (if any) when a wiki page containing an EntityContent was deleted. More... | |
Private Member Functions | |
transmitChange (EntityChange $change) | |
Transmit changes via all registered transmitters. More... | |
Private Attributes | |
$changeTransmitters | |
$changeFactory | |
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 | ( | WikiPageActionEntityChangeFactory | $changeFactory, |
array | $changeTransmitters | ||
) |
Wikibase\Repo\Notifications\ChangeNotifier::notifyOnPageDeleted | ( | EntityContent | $content, |
UserIdentity | $user, | ||
$timestamp | |||
) |
This method constructs and sends the appropriate notifications (if any) when a wiki page containing an EntityContent was deleted.
EntityContent | $content | |
UserIdentity | $user | |
string | $timestamp | timestamp in TS_MW format. |
InvalidArgumentException | |
ChangeTransmitterException |
|
private |
Transmit changes via all registered transmitters.
EntityChange | $change |
|
private |
|
private |