Open Journal Systems  3.3.0
AddFileLinkAction Class Reference
Inheritance diagram for AddFileLinkAction:
BaseAddFileLinkAction LinkAction

Public Member Functions

 __construct ($request, $submissionId, $stageId, $uploaderRoles, $fileStage, $assocType=null, $assocId=null, $reviewRoundId=null, $revisedFileId=null, $dependentFilesOnly=false)
 
 _getTextLabels ($fileStage)
 
- Public Member Functions inherited from BaseAddFileLinkAction
 __construct ($request, $submissionId, $stageId, $uploaderRoles, $actionArgs, $wizardTitle, $buttonLabel)
 
- Public Member Functions inherited from LinkAction
 __construct ($id, $actionRequest, $title=null, $image=null, $toolTip=null)
 
 getActionRequest ()
 
 getHoverTitle ()
 
 getId ()
 
 getImage ()
 
 getTitle ()
 
 getToolTip ()
 
 setTitle ($title)
 

Additional Inherited Members

- Data Fields inherited from LinkAction
 $_actionRequest
 
 $_id
 
 $_image
 
 $_title
 
 $_toolTip
 

Detailed Description

An action to add a submission file.

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

Constructor & Destructor Documentation

◆ __construct()

AddFileLinkAction::__construct (   $request,
  $submissionId,
  $stageId,
  $uploaderRoles,
  $fileStage,
  $assocType = null,
  $assocId = null,
  $reviewRoundId = null,
  $revisedFileId = null,
  $dependentFilesOnly = false 
)

Constructor

Parameters
$requestRequest
$submissionIdinteger The submission the file should be uploaded to.
$stageIdinteger The workflow stage in which the file uploader is being instantiated (one of the WORKFLOW_STAGE_ID_* constants).
$uploaderRolesarray The ids of all roles allowed to upload in the context of this action.
$fileStageinteger The file stage the file should be uploaded to (one of the SUBMISSION_FILE_* constants).
$assocTypeinteger The type of the element the file should be associated with (one fo the ASSOC_TYPE_* constants).
$assocIdinteger The id of the element the file should be associated with.
$reviewRoundIdint The current review round ID (if any)
$revisedFileIdint Revised file ID, if any
$dependentFilesOnlybool whether to only include dependent files in the Genres dropdown.

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

References _getTextLabels().

Member Function Documentation

◆ _getTextLabels()

AddFileLinkAction::_getTextLabels (   $fileStage)

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

Parameters
$fileStageinteger One of the SUBMISSION_FILE_* constants.
Returns
array

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

Referenced by __construct().


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