<?php
/**
* @file classes/mail/mailables/DiscussionProduction.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 DiscussionProduction
*
* @ingroup mail_mailables
*
* @brief Email sent when a new query is created or a note is added to a query on the production workflow stage
*/
namespace PKP\mail\mailables;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
use PKP\mail\traits\Configurable;
use PKP\mail\traits\Discussion;
use PKP\mail\traits\Recipient;
use PKP\mail\traits\Sender;
use PKP\security\Role;
class DiscussionProduction extends Mailable
{
use Recipient;
use Sender;
use Configurable;
use Discussion;
protected static ?string $name = 'mailable.discussionProduction.name';
protected static ?string $description = 'mailable.discussionProduction.description';
protected static ?string $emailTemplateKey = 'DISCUSSION_NOTIFICATION_PRODUCTION';
protected static bool $canDisable = true;
protected static bool $supportsTemplates = true;
protected static array $groupIds = [self::GROUP_PRODUCTION];
protected static array $fromRoleIds = [
Role::ROLE_ID_SUB_EDITOR,
Role::ROLE_ID_ASSISTANT,
Role::ROLE_ID_AUTHOR,
];
protected static array $toRoleIds = [
Role::ROLE_ID_SUB_EDITOR,
Role::ROLE_ID_ASSISTANT,
Role::ROLE_ID_AUTHOR,
];
protected Context $context;
public function __construct(Context $context, Submission $submission)
{
parent::__construct([$context, $submission]);
$this->context = $context;
}
}
|