Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
AuthorSignoffFilesGridRow.inc.php
1 <?php
2 
16 // Import grid base classes.
17 import('lib.pkp.controllers.grid.files.SubmissionFilesGridRow');
18 
20 
25  function AuthorSignoffFilesGridRow($stageId) {
26  parent::SubmissionFilesGridRow(false, false, $stageId);
27  }
28 
29 
30  //
31  // Overridden template methods from GridRow
32  //
36  function initialize($request) {
37  parent::initialize($request);
38 
39  // Get this row's signoff
40  $rowData = $this->getData();
41  $signoff = $rowData['signoff'];
42  $submissionFile = $rowData['submissionFile'];
43 
44  // Get the current user
45  $user = $request->getUser();
46 
47  // Grid only displays current users' signoffs.
48  assert($user->getId() == $signoff->getUserId());
49 
50  import('lib.pkp.controllers.informationCenter.linkAction.ReadSignoffHistoryLinkAction');
51  $this->addAction(new ReadSignoffHistoryLinkAction($request, $signoff->getId(), $submissionFile->getSubmissionId(), $this->getStageId()));
52 
53  if (!$signoff->getDateCompleted()) {
54  import('lib.pkp.controllers.api.signoff.linkAction.AddSignoffFileLinkAction');
56  $request, $submissionFile->getSubmissionId(),
57  $this->getStageId(), $signoff->getSymbolic(), $signoff->getId(),
58  __('submission.upload.signoff'), __('submission.upload.signoff')));
59  }
60  }
61 }
62 
63 ?>
Author&#39;s view of files that they have been asked to signoff on.
& getData()
Class for signoff file upload actions.
addAction($action, $position=GRID_ACTION_POSITION_DEFAULT)
Handle submission file grid row requests.
An action to open the signoff history modal.