PHP Class SubmissionFileAccessPolicy, pkp-lib

Inheritance: extends ContextPolicy
Mostrar archivo Open project: pkp/pkp-lib

Public Properties

Property Type Description
$_baseFileAccessPolicy var $_baseFileAccessPolicy the base file file policy before _SUB_EDITOR is considered

Public Methods

Method Description
__construct ( $request, $args, $roleAssignments, $mode, $fileIdAndRevision = null, $submissionParameterName = 'submissionId' ) Constructor
buildFileAccessPolicy ( PKPRequest $request, array $args, array $roleAssignments, $mode, string $fileIdAndRevision, string $submissionParameterName )

Method Details

__construct() public method

Constructor
public __construct ( $request, $args, $roleAssignments, $mode, $fileIdAndRevision = null, $submissionParameterName = 'submissionId' )
$request PKPRequest
$args array request parameters
$roleAssignments array
$mode int bitfield SUBMISSION_FILE_ACCESS_...
$fileIdAndRevision string
$submissionParameterName string the request parameter we expect the submission id in.

buildFileAccessPolicy() public method

public buildFileAccessPolicy ( PKPRequest $request, array $args, array $roleAssignments, $mode, string $fileIdAndRevision, string $submissionParameterName )
$request PKPRequest
$args array
$roleAssignments array
$fileIdAndRevision string
$submissionParameterName string

Property Details

$_baseFileAccessPolicy public_oe property

var $_baseFileAccessPolicy the base file file policy before _SUB_EDITOR is considered
public $_baseFileAccessPolicy