16 import(
'lib.pkp.controllers.grid.files.form.LibraryFileForm');
32 parent::__construct(
'controllers/grid/files/submissionDocuments/form/editFileForm.tpl',
$contextId);
36 $this->libraryFile = $libraryFileDao->getById($fileId);
38 if (!$this->libraryFile || $this->libraryFile->getContextId() != $this->contextId || $this->libraryFile->getSubmissionId() != $this->getSubmissionId()) {
48 'submissionId' => $this->libraryFile->getSubmissionId(),
49 'libraryFileName' => $this->libraryFile->getName(
null),
50 'libraryFile' => $this->libraryFile
58 $this->libraryFile->setName($this->
getData(
'libraryFileName'),
null);
59 $this->libraryFile->setType($this->
getData(
'fileType'));
62 $libraryFileDao->updateObject($this->libraryFile);
64 parent::execute(...$functionArgs);