[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp82
/
htdocs
/
jurnalpscp
/
lib
/
pkp
/
classes
/
submission
/
form
/
[
Home
]
File: SubmissionSubmitForm.inc.php
<?php /** * @defgroup submission_form Submission Forms */ /** * @file classes/submission/form/SubmissionSubmitForm.inc.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 SubmissionSubmitForm * @ingroup submission_form * * @brief Base class for author submit forms. */ import('lib.pkp.classes.form.Form'); class SubmissionSubmitForm extends Form { /** @var Context */ var $context; /** @var int the ID of the submission */ var $submissionId; /** @var Submission current submission */ var $submission; /** @var int the current step */ var $step; /** * Constructor. * @param $submission object * @param $step int */ function __construct($context, $submission, $step) { parent::__construct( sprintf('submission/form/step%d.tpl', $step), true, $submission ? $submission->getLocale() : null, $context->getSupportedSubmissionLocaleNames() ); $this->addCheck(new FormValidatorPost($this)); $this->addCheck(new FormValidatorCSRF($this)); $this->step = (int) $step; $this->submission = $submission; $this->submissionId = $submission ? $submission->getId() : null; $this->context = $context; } /** * @copydoc Form::fetch */ function fetch($request, $template = null, $display = false) { $templateMgr = TemplateManager::getManager($request); $templateMgr->assign('submissionId', $this->submissionId); $templateMgr->assign('submitStep', $this->step); if (isset($this->submission)) { $submissionProgress = $this->submission->getSubmissionProgress(); } else { $submissionProgress = 1; } $templateMgr->assign('submissionProgress', $submissionProgress); return parent::fetch($request, $template, $display); } }