• Main Page
  • Modules
  • Classes
  • Files
  • File List

controllers/grid/files/signoff/SignoffFilesGridCategoryRow.inc.php

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    // Overridden methods from GridRow
00034    //
00039    function initialize(&$request) {
00040       // Do the default initialization
00041       parent::initialize($request);
00042 
00043       // Is this a new row or an existing row?
00044       $fileId = $this->getId();
00045       if (!empty($fileId) && is_numeric($fileId)) {
00046          $monographFile =& $this->getData();
00047 
00048          // Add the row actions.
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       // Set the no-row locale key
00075       $this->setEmptyCategoryRowText('editor.monograph.noAuditRequested');
00076    }
00077 
00078 
00079    //
00080    // Private helper methods.
00081    //
00086    function _getStageId() {
00087       return $this->_stageId;
00088    }
00089 }
00090 
00091 ?>

Generated on Mon Sep 17 2012 13:58:56 for Open Monograph Press by  doxygen 1.7.1