17 import(
'lib.pkp.controllers.grid.files.SubmissionFilesGridDataProvider');
28 parent::__construct(SUBMISSION_FILE_QUERY);
29 $this->_noteId = $noteId;
41 import(
'lib.pkp.classes.security.authorization.QueryAccessPolicy');
50 import(
'lib.pkp.controllers.grid.files.fileList.linkAction.SelectFilesLinkAction');
54 __(
'editor.submission.selectFiles')
61 function loadData($filter = array()) {
67 $note = $noteDao->getById($this->_noteId);
68 if ($note->getAssocType() != ASSOC_TYPE_QUERY || $note->getAssocId() != $query->getId()) {
73 $submissionFiles = $submissionFileDao->getLatestRevisionsByAssocId(ASSOC_TYPE_NOTE, $this->_noteId, $submission->getId(), $this->getFileStage());
84 parent::getRequestArgs(),
86 'assocType' => ASSOC_TYPE_NOTE,
87 'assocId' => $this->_noteId,
88 'queryId' => $query->getId(),
89 'noteId' => $this->_noteId,
90 'representationId' => $representation?$representation->getId():
null,
101 import(
'lib.pkp.controllers.api.file.linkAction.AddFileLinkAction');
103 $request, $submission->getId(), $this->getStageId(),
104 $this->getUploaderRoles(), $this->getFileStage(),
105 ASSOC_TYPE_NOTE, $this->_noteId