[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
05122024
/
htdocs
/
jurnal-kesmas
/
classes
/
notification
/
form
/
[
Home
]
File: NotificationSettingsForm.php
<?php /** * @file classes/notification/form/NotificationSettingsForm.php * * Copyright (c) 2014-2021 Simon Fraser University * Copyright (c) 2003-2021 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * @class NotificationSettingsForm * * @ingroup notification_form * * @brief Form to edit notification settings. */ namespace APP\notification\form; use APP\notification\Notification; use PKP\context\Context; use PKP\notification\form\PKPNotificationSettingsForm; class NotificationSettingsForm extends PKPNotificationSettingsForm { /** * @copydoc PKPNotificationSettingsForm::getNotificationSettingsCategories() */ public function getNotificationSettingCategories(?Context $context = null) { $categories = parent::getNotificationSettingCategories($context); for ($i = 0; $i < count($categories); $i++) { if ($categories[$i]['categoryKey'] === 'notification.type.public') { $categories[$i]['settings'][] = Notification::NOTIFICATION_TYPE_PUBLISHED_ISSUE; $categories[$i]['settings'][] = Notification::NOTIFICATION_TYPE_OPEN_ACCESS; break; } } return $categories; } } if (!PKP_STRICT_MODE) { class_alias('\APP\notification\form\NotificationSettingsForm', '\NotificationSettingsForm'); }