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
00029
00036 function getActionArgs(&$monographFile, $stageId = null) {
00037 assert(is_a($monographFile, 'MonographFile'));
00038
00039
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 ?>