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

controllers/listbuilder/files/CopyeditingFilesListbuilderHandler.inc.php

00001 <?php
00002 
00015 import('controllers.listbuilder.files.FilesListbuilderHandler');
00016 
00017 class CopyeditingFilesListbuilderHandler extends FilesListbuilderHandler {
00021    function CopyeditingFilesListbuilderHandler() {
00022       // Get access to the monograph file constants.
00023       import('classes.monograph.MonographFile');
00024       parent::FilesListbuilderHandler(MONOGRAPH_FILE_COPYEDIT);
00025    }
00026 
00027 
00028    //
00029    // Implement template methods from PKPHandler
00030    //
00034    function authorize(&$request, &$args, $roleAssignments) {
00035       return parent::authorize($request, $args, $roleAssignments, WORKFLOW_STAGE_ID_EDITING);
00036    }
00037 
00038 
00039    //
00040    // Implement methods from FilesListbuilderHandler
00041    //
00045    function initialize(&$request) {
00046       parent::initialize($request);
00047       AppLocale::requireComponents(LOCALE_COMPONENT_OMP_EDITOR);
00048       $this->setTitle('editor.monograph.selectCopyedingFiles');
00049    }
00050 
00054    function getOptions() {
00055       import('classes.monograph.MonographFile');
00056       $monograph =& $this->getAuthorizedContextObject(ASSOC_TYPE_MONOGRAPH);
00057 
00058       $submissionFileDao =& DAORegistry::getDAO('SubmissionFileDAO'); /* @var $submissionFileDao SubmissionFileDAO */
00059       $monographFiles =& $submissionFileDao->getLatestRevisions($monograph->getId(), $this->getFileStage());
00060 
00061       return parent::getOptions($monographFiles);
00062    }
00063 }
00064 
00065 ?>

Generated on Mon Sep 17 2012 13:00:01 for Open Monograph Press by  doxygen 1.7.1