/** * @copydoc GridColumn::getCellActions() */ function getCellActions($request, $row, $position = GRID_ACTION_POSITION_DEFAULT) { // Retrieve the submission file. $query = $row->getData(); $headNote = $query->getHeadNote(); // Create the cell action to download a file. import('lib.pkp.classes.linkAction.request.AjaxModal'); $router = $request->getRouter(); $actionArgs = array_merge($this->_actionArgs, array('queryId' => $query->getId())); return array_merge(parent::getCellActions($request, $row, $position), array(new LinkAction('readQuery', new AjaxModal($router->url($request, null, null, 'readQuery', null, $actionArgs), $headNote ? $headNote->getTitle() : '—', 'modal_edit'), $headNote && $headNote->getTitle() != '' ? $headNote->getTitle() : '—', null))); }
/** * @copydoc GridColumn::getCellActions() */ function getCellActions($request, $row, $position = GRID_ACTION_POSITION_DEFAULT) { $cellActions = parent::getCellActions($request, $row, $position); // Retrieve the submission file. $submissionFileData =& $row->getData(); assert(isset($submissionFileData['submissionFile'])); $submissionFile = $submissionFileData['submissionFile']; /* @var $submissionFile SubmissionFile */ // Create the cell action to download a file. import('lib.pkp.controllers.api.file.linkAction.DownloadFileLinkAction'); $cellActions[] = new DownloadFileLinkAction($request, $submissionFile, $this->_getStageId()); return $cellActions; }
/** * @copydoc GridColumn::getCellActions() */ function getCellActions($request, $row, $position = GRID_ACTION_POSITION_DEFAULT) { $cellActions = parent::getCellActions($request, $row, $position); // Retrieve the submission file. $submissionFileData =& $row->getData(); assert(isset($submissionFileData['submissionFile'])); $submissionFile = $submissionFileData['submissionFile']; /* @var $submissionFile SubmissionFile */ // Create the cell action to download a file. import('lib.pkp.controllers.api.file.linkAction.DownloadFileLinkAction'); $cellActions[] = new DownloadFileLinkAction($request, $submissionFile, $this->_getStageId()); if ($this->_getIncludeNotes()) { import('lib.pkp.controllers.informationCenter.linkAction.FileNotesLinkAction'); $user = $request->getUser(); $cellActions[] = new FileNotesLinkAction($request, $submissionFile, $user, $this->_getStageId(), $this->_removeHistoryTab); } return $cellActions; }