/**
  * @copydoc PKPHandler::initialize()
  */
 function initialize($request, $template = 'controllers/grid/gridRow.tpl')
 {
     parent::initialize($request, $template);
     $submissionFileData =& $this->getData();
     $submissionFile =& $submissionFileData['submissionFile'];
     /* @var $submissionFile SubmissionFile */
     import('lib.pkp.classes.linkAction.request.AjaxModal');
     $router = $request->getRouter();
     if ($submissionFile->getFileType() == 'text/html') {
         $this->addAction(new LinkAction('dependentFiles', new AjaxModal($router->url($request, null, null, 'dependentFiles', null, array_merge($this->getRequestArgs(), array('fileId' => $submissionFile->getFileId(), 'revision' => $submissionFile->getRevision()))), __('submission.dependentFiles'), 'modal_edit'), __('submission.dependentFiles'), 'edit'));
     }
 }
 /**
  * @copydoc GridRow::initialize
  */
 function initialize($request, $template = null)
 {
     parent::initialize($request, $template);
     // Get this row's signoff
     $rowData = $this->getData();
     $signoff = $rowData['signoff'];
     $submissionFile = $rowData['submissionFile'];
     // Get the current user
     $user = $request->getUser();
     // Grid only displays current users' signoffs.
     assert($user->getId() == $signoff->getUserId());
     import('lib.pkp.controllers.informationCenter.linkAction.ReadSignoffHistoryLinkAction');
     $this->addAction(new ReadSignoffHistoryLinkAction($request, $signoff->getId(), $submissionFile->getSubmissionId(), $this->getStageId()));
     if (!$signoff->getDateCompleted()) {
         import('lib.pkp.controllers.api.signoff.linkAction.AddSignoffFileLinkAction');
         $this->addAction(new AddSignoffFileLinkAction($request, $submissionFile->getSubmissionId(), $this->getStageId(), $signoff->getSymbolic(), $signoff->getId(), __('submission.upload.signoff'), __('submission.upload.signoff')));
     }
 }