| Server IP : 127.0.1.1 / Your IP : 216.73.216.83 Web Server : Apache/2.4.58 (Ubuntu) System : Linux nepub 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/public_html/controllers/wizard/fileUpload/ |
Upload File : |
<?php
/**
* @defgroup controllers_wizard_fileUpload File Upload Wizard
* The file upload wizard implements the 3-step wizard used to manage
* uploads of submission files.
*/
/**
* @file controllers/wizard/fileUpload/FileUploadWizardHandler.inc.php
*
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class FileUploadWizardHandler
* @ingroup controllers_wizard_fileUpload
*
* @brief A controller that handles basic server-side
* operations of the file upload wizard.
*/
// Import the base handler.
import('lib.pkp.controllers.wizard.fileUpload.PKPFileUploadWizardHandler');
class FileUploadWizardHandler extends PKPFileUploadWizardHandler {
/**
* @copydoc PKPFileUploadWizardHandler::_attachEntities
*/
protected function _attachEntities($submissionFile) {
parent::_attachEntities($submissionFile);
switch ($submissionFile->getFileStage()) {
case SUBMISSION_FILE_PROOF:
$galleyDao = DAORegistry::getDAO('ArticleGalleyDAO'); /* @var $galleyDao ArticleGalleyDAO */
assert($submissionFile->getAssocType() == ASSOC_TYPE_REPRESENTATION);
$galley = $galleyDao->getById($submissionFile->getAssocId());
if ($galley) {
$galley->setFileId($submissionFile->getFileId());
$galleyDao->updateObject($galley);
}
break;
}
}
}