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

controllers/api/file/linkAction/FileLinkAction.inc.php

00001 <?php
00014 import('lib.pkp.classes.linkAction.LinkAction');
00015 
00016 class FileLinkAction extends LinkAction {
00017 
00022    function FileLinkAction($id, &$actionRequest, $title = null, $image = null, $tooltip = null) {
00023       parent::LinkAction($id, $actionRequest, $title, $image, $tooltip);
00024    }
00025 
00026 
00027    //
00028    // Protected helper function
00029    //
00036    function getActionArgs(&$monographFile, $stageId = null) {
00037       assert(is_a($monographFile, 'MonographFile'));
00038 
00039       // Create the action arguments array.
00040       $args =  array(
00041          'fileId' => $monographFile->getFileId(),
00042          'revision' => $monographFile->getRevision(),
00043          'monographId' => $monographFile->getMonographId()
00044       );
00045       if ($stageId) $args['stageId'] = $stageId;
00046 
00047       return $args;
00048    }
00049 }
00050 
00051 ?>

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