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

controllers/grid/files/proof/ProofFilesGridHandler.inc.php

00001 <?php
00002 
00015 // import grid signoff files grid base classes
00016 import('controllers.grid.files.signoff.SignoffFilesGridHandler');
00017 
00018 // Import monograph file class which contains the MONOGRAPH_FILE_* constants.
00019 import('classes.monograph.MonographFile');
00020 
00021 // Import MONOGRAPH_EMAIL_* constants.
00022 import('classes.mail.MonographMailTemplate');
00023 
00024 class ProofFilesGridHandler extends SignoffFilesGridHandler {
00028    function ProofFilesGridHandler() {
00029       parent::SignoffFilesGridHandler(
00030          WORKFLOW_STAGE_ID_PRODUCTION,
00031          MONOGRAPH_FILE_PROOF,
00032          'SIGNOFF_PROOFING',
00033          MONOGRAPH_EMAIL_PROOFREAD_NOTIFY_AUTHOR,
00034          ASSOC_TYPE_PUBLICATION_FORMAT
00035       );
00036 
00037       $this->setEmptyCategoryRowText('grid.noAuditors');
00038    }
00039 
00040    //
00041    // Implement template methods from PKPHandler
00042    //
00047    function initialize(&$request) {
00048       $publicationFormat =& $this->getPublicationFormat();
00049       $this->setAssocId($publicationFormat->getId());
00050 
00051       parent::initialize($request);
00052 
00053       $router =& $request->getRouter();
00054 
00055       $this->addAction(
00056          new LinkAction(
00057             'viewLibrary',
00058             new AjaxModal(
00059                $router->url($request, null, null, 'viewLibrary', null, $this->getRequestArgs()),
00060                __('grid.action.viewLibrary'),
00061                'modal_information'
00062             ),
00063             __('grid.action.viewLibrary'),
00064             'more_info'
00065          )
00066       );
00067 
00068       // Basic grid configuration
00069       $this->setId('proofFiles-' . $this->getAssocId());
00070       $this->setTitle('monograph.pageProofs');
00071       $this->setInstructions('monograph.proofReadingDescription');
00072    }
00073 
00077    function &getRowInstance() {
00078       $row =& parent::getRowInstance();
00079       $row->setRequestArgs($this->getRequestArgs());
00080       return $row;
00081    }
00082 
00086    function getRequestArgs() {
00087       return array_merge(
00088          parent::getRequestArgs(),
00089          array('publicationFormatId' => $this->getAssocId())
00090       );
00091    }
00092 }
00093 
00094 ?>

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