Public Member Functions

AddFileLinkAction Class Reference
[Controllers_api_file_linkAction]

An action to add a submission file. More...

Inheritance diagram for AddFileLinkAction:
BaseAddFileLinkAction

List of all members.

Public Member Functions

 _getTextLabels ($fileStage)
 AddFileLinkAction (&$request, $monographId, $stageId, $uploaderRoles, $fileStage, $assocType=null, $assocId=null, $reviewRoundId=null)

Detailed Description

An action to add a submission file.

Definition at line 20 of file AddFileLinkAction.inc.php.


Member Function Documentation

AddFileLinkAction._getTextLabels ( fileStage  ) 

Static method to return text labels for upload to different file stages.

Parameters:
$fileStage integer One of the MONOGRAPH_FILE_* constants.
Returns:
array

Definition at line 72 of file AddFileLinkAction.inc.php.

Referenced by AddFileLinkAction().

AddFileLinkAction.AddFileLinkAction ( &$  request,
monographId,
stageId,
uploaderRoles,
fileStage,
assocType = null,
assocId = null,
reviewRoundId = null 
)

Constructor

Parameters:
$request Request
$monographId integer The monograph the file should be uploaded to.
$stageId integer The workflow stage in which the file uploader is being instantiated (one of the WORKFLOW_STAGE_ID_* constants).
$uploaderRoles array The ids of all roles allowed to upload in the context of this action.
$fileStage integer The file stage the file should be uploaded to (one of the MONOGRAPH_FILE_* constants).
$assocType integer The type of the element the file should be associated with (one fo the ASSOC_TYPE_* constants).
$assocId integer The id of the element the file should be associated with.
$reviewRound ReviewRound The current review round (if any).

Definition at line 40 of file AddFileLinkAction.inc.php.

References _getTextLabels(), and BaseAddFileLinkAction.BaseAddFileLinkAction().


The documentation for this class was generated from the following file: