One Hat Cyber Team
Your IP :
216.73.216.135
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
ojs-nosc
/
classes
/
decision
/
types
/
Edit File:
Accept.php
<?php /** * @file classes/decision/types/Accept.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 Accept * * @brief Extend the Accept decision to support APC payments */ namespace APP\decision\types; use APP\core\Application; use APP\decision\Decision; use APP\decision\types\traits\RequestPayment; use APP\submission\Submission; use Illuminate\Validation\Validator; use PKP\context\Context; use PKP\decision\Steps; use PKP\decision\types\Accept as TypesAccept; use PKP\submission\reviewRound\ReviewRound; use PKP\user\User; class Accept extends TypesAccept { use RequestPayment; public function validate(array $props, Submission $submission, Context $context, Validator $validator, ?int $reviewRoundId = null) { parent::validate($props, $submission, $context, $validator, $reviewRoundId); if (!isset($props['actions'])) { return; } foreach ((array) $props['actions'] as $index => $action) { $actionErrorKey = 'actions.' . $index; switch ($action['id']) { case $this->ACTION_PAYMENT: $this->validatePaymentAction($action, $actionErrorKey, $validator, $context); break; } } } public function runAdditionalActions(Decision $decision, Submission $submission, User $editor, Context $context, array $actions) { parent::runAdditionalActions($decision, $submission, $editor, $context, $actions); foreach ($actions as $action) { switch ($action['id']) { case self::ACTION_PAYMENT: $this->requestPayment($submission, $editor, $context); break; } } } public function getSteps(Submission $submission, Context $context, User $editor, ?ReviewRound $reviewRound): Steps { $steps = parent::getSteps($submission, $context, $editor, $reviewRound); // Request payment if configured $paymentManager = Application::get()->getPaymentManager($context); if ($paymentManager->publicationEnabled()) { $steps->addStep($this->getPaymentForm($context), true); } return $steps; } }
Simpan