Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
PKPSubmissionFileAccessPolicy Class Reference
Inheritance diagram for PKPSubmissionFileAccessPolicy:
ContextPolicy PolicySet SubmissionFileAccessPolicy

Public Member Functions

 buildFileAccessPolicy ($request, $args, $roleAssignments, $mode, $fileIdAndRevision, $submissionParameterName)
 
 PKPSubmissionFileAccessPolicy ($request, $args, $roleAssignments, $mode, $fileIdAndRevision=null, $submissionParameterName= 'submissionId')
 
- Public Member Functions inherited from ContextPolicy
 ContextPolicy ($request)
 
- Public Member Functions inherited from PolicySet
 addPolicy ($policyOrPolicySet, $addToTop=false)
 
 getCombiningAlgorithm ()
 
 getEffectIfNoPolicyApplies ()
 
getPolicies ()
 
 PolicySet ($combiningAlgorithm=COMBINING_DENY_OVERRIDES)
 
 setEffectIfNoPolicyApplies ($effectIfNoPolicyApplies)
 

Public Attributes

 $_baseFileAccessPolicy
 
- Public Attributes inherited from PolicySet
 $_effectIfNoPolicyApplies = AUTHORIZATION_DENY
 

Detailed Description

Base class to control (write) access to submissions and (read) access to submission details in OMP.

Definition at line 23 of file PKPSubmissionFileAccessPolicy.inc.php.

Member Function Documentation

PKPSubmissionFileAccessPolicy::buildFileAccessPolicy (   $request,
  $args,
  $roleAssignments,
  $mode,
  $fileIdAndRevision,
  $submissionParameterName 
)
Parameters
PKPRequest$request
array$args
array$roleAssignments
intbitfield $mode
string$fileIdAndRevision
string$submissionParameterName

Definition at line 56 of file PKPSubmissionFileAccessPolicy.inc.php.

References PolicySet\addPolicy(), and PolicySet\PolicySet().

Referenced by PKPSubmissionFileAccessPolicy().

PKPSubmissionFileAccessPolicy::PKPSubmissionFileAccessPolicy (   $request,
  $args,
  $roleAssignments,
  $mode,
  $fileIdAndRevision = null,
  $submissionParameterName = 'submissionId' 
)

Constructor

Parameters
$requestPKPRequest
$argsarray request parameters
$roleAssignmentsarray
$modeint bitfield SUBMISSION_FILE_ACCESS_...
$fileIdAndRevisionstring
$submissionParameterNamestring the request parameter we expect the submission id in.

Definition at line 38 of file PKPSubmissionFileAccessPolicy.inc.php.

References buildFileAccessPolicy().

Member Data Documentation

PKPSubmissionFileAccessPolicy::$_baseFileAccessPolicy

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

Definition at line 26 of file PKPSubmissionFileAccessPolicy.inc.php.

Referenced by SubmissionFileAccessPolicy\SubmissionFileAccessPolicy().


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