16 import(
'lib.pkp.controllers.grid.files.form.LibraryFileForm');
32 parent::__construct(
'controllers/grid/settings/library/form/editFileForm.tpl',
$contextId);
34 $this->libraryFile = $libraryFileDao->getById($fileId);
36 if (!$this->libraryFile || $this->libraryFile->getContextId() != $this->contextId) {
46 'libraryFileName' => $this->libraryFile->getName(
null),
47 'libraryFile' => $this->libraryFile,
48 'publicAccess' => $this->libraryFile->getPublicAccess() ?
true :
false,
56 $this->libraryFile->setName($this->
getData(
'libraryFileName'),
null);
57 $this->libraryFile->setType($this->
getData(
'fileType'));
58 $this->libraryFile->setPublicAccess($this->
getData(
'publicAccess'));
61 $libraryFileDao->updateObject($this->libraryFile);
62 parent::execute(...$functionArgs);