Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
AuthorSubmissionMetadataHandler.inc.php
1 <?php
2 
16 import('lib.pkp.classes.controllers.modals.submissionMetadata.SubmissionMetadataHandler');
17 
18 // import JSON class for use with all AJAX requests
19 import('lib.pkp.classes.core.JSONMessage');
20 
26  parent::SubmissionMetadataHandler();
27  $this->addRoleAssignment(array(ROLE_ID_AUTHOR), array('fetch', 'saveForm'));
28  }
29 
30  //
31  // Implement template methods from PKPHandler.
32  //
39  function authorize($request, &$args, $roleAssignments) {
40  import('classes.security.authorization.SubmissionAccessPolicy');
41  $this->addPolicy(new SubmissionAccessPolicy($request, $args, $roleAssignments));
42  return parent::authorize($request, $args, $roleAssignments);
43  }
44 
50  function getFormInstance($submissionId, $stageId = null, $params = null) {
51  import('controllers.modals.submissionMetadata.form.CatalogEntrySubmissionReviewForm');
52  return new CatalogEntrySubmissionReviewForm($submissionId, $stageId, $params);
53  }
54 }
55 
56 ?>
addPolicy($authorizationPolicy, $addToTop=false)
Displays a submission&#39;s metadata view.
Base class for submission metadata view/edit operations.
Display submission metadata to authors.
addRoleAssignment($roleIds, $operations)
Class to control (write) access to submissions and (read) access to submission details in OMP...
getFormInstance($submissionId, $stageId=null, $params=null)
authorize($request, &$args, $roleAssignments)