mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
Namespace Special
Change-Id: If194554d8af60369699b057af5b4a2e5dab4897e
This commit is contained in:
parent
5bd08e95ee
commit
5c596d2d1b
|
@ -52,15 +52,15 @@
|
|||
"EchoPushNotificationRequest": "MediaWiki\\Extension\\Notifications\\Push\\NotificationRequestJob"
|
||||
},
|
||||
"SpecialPages": {
|
||||
"Notifications": "SpecialNotifications",
|
||||
"Notifications": "MediaWiki\\Extension\\Notifications\\Special\\SpecialNotifications",
|
||||
"DisplayNotificationsConfiguration": {
|
||||
"class": "SpecialDisplayNotificationsConfiguration",
|
||||
"class": "MediaWiki\\Extension\\Notifications\\Special\\SpecialDisplayNotificationsConfiguration",
|
||||
"services": [
|
||||
"EchoAttributeManager",
|
||||
"UserOptionsManager"
|
||||
]
|
||||
},
|
||||
"NotificationsMarkRead": "SpecialNotificationsMarkRead"
|
||||
"NotificationsMarkRead": "MediaWiki\\Extension\\Notifications\\Special\\SpecialNotificationsMarkRead"
|
||||
},
|
||||
"AvailableRights": [
|
||||
"manage-all-push-subscriptions"
|
||||
|
@ -1117,15 +1117,11 @@
|
|||
"MWEchoEmailBatch": "includes/EmailBatch.php",
|
||||
"MWEchoEventLogging": "includes/EventLogging.php",
|
||||
"MWEchoNotifUser": "includes/NotifUser.php",
|
||||
"NotificationPager": "includes/special/NotificationPager.php",
|
||||
"ProcessEchoEmailBatch": "maintenance/processEchoEmailBatch.php",
|
||||
"RecomputeNotifCounts": "maintenance/recomputeNotifCounts.php",
|
||||
"RemoveInvalidNotification": "maintenance/removeInvalidNotification.php",
|
||||
"RemoveOrphanedEvents": "maintenance/removeOrphanedEvents.php",
|
||||
"ResourceLoaderEchoImageModule": "includes/ResourceLoaderEchoImageModule.php",
|
||||
"SpecialDisplayNotificationsConfiguration": "includes/special/SpecialDisplayNotificationsConfiguration.php",
|
||||
"SpecialNotifications": "includes/special/SpecialNotifications.php",
|
||||
"SpecialNotificationsMarkRead": "includes/special/SpecialNotificationsMarkRead.php",
|
||||
"UpdateEchoSchemaForSuppression": "maintenance/updateEchoSchemaForSuppression.php",
|
||||
"EchoUpdatePerUserBlacklist": "maintenance/updatePerUserBlacklist.php",
|
||||
"EchoPush\\PushNotifier": "includes/Push/PushNotifier.php",
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
namespace MediaWiki\Extension\Notifications\Formatters;
|
||||
|
||||
use Html;
|
||||
use MediaWiki\Extension\Notifications\Special\SpecialNotificationsMarkRead;
|
||||
use MWTimestamp;
|
||||
use OOUI\IconWidget;
|
||||
use OutputPage;
|
||||
use SpecialNotificationsMarkRead;
|
||||
use Xml;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace MediaWiki\Extension\Notifications\Special;
|
||||
|
||||
use EchoNotification;
|
||||
use EchoServices;
|
||||
use Exception;
|
||||
use IContextSource;
|
||||
use MWEchoDbFactory;
|
||||
use ReverseChronologicalPager;
|
||||
|
||||
/**
|
||||
* This pager is used by Special:Notifications (NO-JS).
|
||||
* The heavy-lifting is done by IndexPager (grand-parent to this class).
|
|
@ -1,7 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace MediaWiki\Extension\Notifications\Special;
|
||||
|
||||
use EchoAttributeManager;
|
||||
use Html;
|
||||
use MediaWiki\Extension\Notifications\Hooks as EchoHooks;
|
||||
use MediaWiki\User\UserOptionsManager;
|
||||
use OOUIHTMLForm;
|
||||
use UnlistedSpecialPage;
|
||||
use User;
|
||||
|
||||
class SpecialDisplayNotificationsConfiguration extends UnlistedSpecialPage {
|
||||
/**
|
|
@ -1,6 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace MediaWiki\Extension\Notifications\Special;
|
||||
|
||||
use EchoDataOutputFormatter;
|
||||
use EchoSeenTime;
|
||||
use Html;
|
||||
use MediaWiki\Extension\Notifications\OOUI\LabelIconWidget;
|
||||
use MWEchoEventLogging;
|
||||
use OOUI;
|
||||
use SpecialPage;
|
||||
|
||||
class SpecialNotifications extends SpecialPage {
|
||||
|
|
@ -1,5 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace MediaWiki\Extension\Notifications\Special;
|
||||
|
||||
use FormSpecialPage;
|
||||
use HTMLForm;
|
||||
use MWEchoNotifUser;
|
||||
use SpecialPage;
|
||||
|
||||
/**
|
||||
* Form for marking notifications as read by ID.
|
||||
*
|
||||
|
@ -47,8 +54,7 @@ class SpecialNotificationsMarkRead extends FormSpecialPage {
|
|||
'default' => $this->par,
|
||||
'filter-callback' => static function ( $value, $alldata ) {
|
||||
// Allow for a single value or a set of values
|
||||
$result = explode( ',', $value );
|
||||
return $result;
|
||||
return explode( ',', $value );
|
||||
},
|
||||
'validation-callback' => function ( $value, $alldata ) {
|
||||
if ( $value === [ 'ALL' ] ) {
|
Loading…
Reference in a new issue