-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkp/pkp-lib#5716 Separate email template installation from migrations
- Loading branch information
Showing
3 changed files
with
52 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
classes/migration/upgrade/v3_4_0/InstallEmailTemplates.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
/** | ||
* @file classes/migration/upgrade/v3_4_0/InstallEmailTemplates.php | ||
* | ||
* Copyright (c) 2014-2022 Simon Fraser University | ||
* Copyright (c) 2000-2022 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @class InstallEmailTemplates | ||
* @brief Install new email templates for 3.4 | ||
*/ | ||
|
||
namespace APP\migration\upgrade\v3_4_0; | ||
|
||
class InstallEmailTemplates extends \PKP\migration\upgrade\v3_4_0\InstallEmailTemplates | ||
{ | ||
protected function getEmailTemplateKeys(): array | ||
{ | ||
return [ | ||
'EDITOR_DECISION_NOTIFY_OTHER_AUTHORS', | ||
'EDITOR_DECISION_NEW_ROUND', | ||
'EDITOR_DECISION_REVERT_DECLINE', | ||
'EDITOR_DECISION_REVERT_INITIAL_DECLINE', | ||
'EDITOR_DECISION_SKIP_REVIEW', | ||
'EDITORIAL_REMINDER', | ||
'EDITOR_DECISION_BACK_FROM_PRODUCTION', | ||
'EDITOR_DECISION_BACK_FROM_COPYEDITING', | ||
'EDITOR_DECISION_CANCEL_REVIEW_ROUND', | ||
'REVIEW_RESEND_REQUEST', | ||
'DISCUSSION_NOTIFICATION_SUBMISSION', | ||
'DISCUSSION_NOTIFICATION_REVIEW', | ||
'DISCUSSION_NOTIFICATION_COPYEDITING', | ||
'DISCUSSION_NOTIFICATION_PRODUCTION', | ||
]; | ||
} | ||
|
||
protected function getAppVariableNames(): array | ||
{ | ||
return [ | ||
'contextName' => 'journalName', | ||
'contextUrl' => 'journalUrl', | ||
'contextSignature' => 'journalSignature', | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters