|
MediaWiki master
|
Notification representing a Recent change. More...
Inherits MediaWiki\Notification\Types\WikiNotification.

Public Member Functions | |
| __construct (UserIdentity $editor, PageIdentity $title, RecentChange $recentChange, string $pageStatus, string $source) | |
| getPageStatus () | |
| Retrieve page state, list provided by MediaWiki is [ 'deleted', 'created', 'moved', 'restored', 'changed' ] but additionally extensions can add their own states. | |
| getRecentChange () | |
| getSource () | |
| What is the notification source, is it a User Talk change, Watchlist notification or an admin notification ( Users loaded from UsersNotifiedOnAllChanges ) | |
| isUserTalkNotification () | |
| isWatchlistNotification () | |
Public Member Functions inherited from MediaWiki\Notification\Types\WikiNotification | |
| __construct (string $type, PageIdentity $title, UserIdentity $agent, array $custom=[]) | |
| Sets the agent (UserIdentity) who triggered this notification. | |
| getAgent () | |
| |
| getTitle () | |
| Get the PageIdentity of the related page. | |
| setAgent (UserIdentity $agent) | |
Public Member Functions inherited from MediaWiki\Notification\Notification | |
| __construct (string $type, array $custom=[]) | |
| Base for Notifications. | |
| getProperties () | |
| Retrieve Notification properties. | |
| getType () | |
| Get the Notification type. | |
| setProperty (string $key, $value) | |
| Sets a custom property to the notification. | |
Public Attributes | |
| const | ADMIN_NOTIFICATION = 'admin' |
| const | TALK_NOTIFICATION = 'talk' |
| const | TYPE = 'mediawiki.recent_change' |
| const | WATCHLIST_NOTIFICATION = 'watchlist' |
Additional Inherited Members | |
Protected Attributes inherited from MediaWiki\Notification\Notification | |
| string string | $type |
Notification representing a Recent change.
Used as base to transport Watchlist, UserTalk and Administrator recent changes notifications
Definition at line 20 of file RecentChangeNotification.php.
| MediaWiki\RecentChanges\RecentChangeNotification::__construct | ( | UserIdentity | $editor, |
| PageIdentity | $title, | ||
| RecentChange | $recentChange, | ||
| string | $pageStatus, | ||
| string | $source ) |
| UserIdentity | $editor | |
| PageIdentity | $title | |
| RecentChange | $recentChange | |
| string | $pageStatus | the Page status from RecentChange, this change is not persisted |
| string | $source | one of types talk, admin or watchlist |
Definition at line 39 of file RecentChangeNotification.php.
References $source.
| MediaWiki\RecentChanges\RecentChangeNotification::getPageStatus | ( | ) |
Retrieve page state, list provided by MediaWiki is [ 'deleted', 'created', 'moved', 'restored', 'changed' ] but additionally extensions can add their own states.
Definition at line 61 of file RecentChangeNotification.php.
| MediaWiki\RecentChanges\RecentChangeNotification::getRecentChange | ( | ) |
Definition at line 52 of file RecentChangeNotification.php.
| MediaWiki\RecentChanges\RecentChangeNotification::getSource | ( | ) |
What is the notification source, is it a User Talk change, Watchlist notification or an admin notification ( Users loaded from UsersNotifiedOnAllChanges )
Definition at line 70 of file RecentChangeNotification.php.
| MediaWiki\RecentChanges\RecentChangeNotification::isUserTalkNotification | ( | ) |
Definition at line 74 of file RecentChangeNotification.php.
| MediaWiki\RecentChanges\RecentChangeNotification::isWatchlistNotification | ( | ) |
Definition at line 78 of file RecentChangeNotification.php.
| const MediaWiki\RecentChanges\RecentChangeNotification::ADMIN_NOTIFICATION = 'admin' |
Definition at line 25 of file RecentChangeNotification.php.
| const MediaWiki\RecentChanges\RecentChangeNotification::TALK_NOTIFICATION = 'talk' |
Definition at line 24 of file RecentChangeNotification.php.
| const MediaWiki\RecentChanges\RecentChangeNotification::TYPE = 'mediawiki.recent_change' |
Definition at line 22 of file RecentChangeNotification.php.
| const MediaWiki\RecentChanges\RecentChangeNotification::WATCHLIST_NOTIFICATION = 'watchlist' |
Definition at line 26 of file RecentChangeNotification.php.