00001 <?php
00002
00015 import('lib.pkp.classes.controllers.grid.GridCategoryRow');
00016
00017 class SignoffFilesGridCategoryRow extends GridCategoryRow {
00018
00020 var $_stageId;
00021
00026 function SignoffFilesGridCategoryRow($stageId = null) {
00027 $this->_stageId = $stageId;
00028 parent::GridCategoryRow();
00029 }
00030
00031
00032
00033
00034
00039 function initialize(&$request) {
00040
00041 parent::initialize($request);
00042
00043
00044 $fileId = $this->getId();
00045 if (!empty($fileId) && is_numeric($fileId)) {
00046 $monographFile =& $this->getData();
00047
00048
00049 $actionArgs = array(
00050 'monographId' => $monographFile->getMonographId(),
00051 'fileId' => $monographFile->getFileId()
00052 );
00053
00054 $router =& $request->getRouter();
00055
00056 $this->addAction(
00057 new LinkAction(
00058 'history',
00059 new AjaxModal(
00060 $router->url($request, null, 'informationCenter.FileInformationCenterHandler', 'viewHistory', null, $actionArgs),
00061 __('submission.history'),
00062 'modal_information',
00063 true
00064 ),
00065 __('submission.history'),
00066 'more_info'
00067 )
00068 );
00069
00070 import('controllers.api.file.linkAction.DeleteFileLinkAction');
00071 $this->addAction(new DeleteFileLinkAction($request, $monographFile, $this->_getStageId()));
00072 }
00073
00074
00075 $this->setEmptyCategoryRowText('editor.monograph.noAuditRequested');
00076 }
00077
00078
00079
00080
00081
00086 function _getStageId() {
00087 return $this->_stageId;
00088 }
00089 }
00090
00091 ?>