Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
SubmissionFileBaseAccessPolicy Class Reference
Inheritance diagram for SubmissionFileBaseAccessPolicy:
AuthorizationPolicy PKPSubmissionFileRequestedRevisionRequiredPolicy SubmissionFileAssignedAuditorAccessPolicy SubmissionFileAssignedReviewerAccessPolicy SubmissionFileMatchesSubmissionPolicy SubmissionFileSubmissionStageRequiredPolicy SubmissionFileUploaderAccessPolicy SubmissionFileViewableReviewerResponseRequiredPolicy SubmissionFileRequestedRevisionRequiredPolicy

Public Member Functions

_getCache ()
 
 getRequest ()
 
 getSubmissionFile ($request)
 
 SubmissionFileBaseAccessPolicy ($request, $fileIdAndRevision=null)
 
- Public Member Functions inherited from AuthorizationPolicy
 addAuthorizedContextObject ($assocType, &$authorizedObject)
 
 applies ()
 
 AuthorizationPolicy ($message=null)
 
 effect ()
 
getAdvice ($adviceType)
 
getAuthorizedContext ()
 
getAuthorizedContextObject ($assocType)
 
 hasAdvice ($adviceType)
 
 hasAuthorizedContextObject ($assocType)
 
 setAdvice ($adviceType, &$adviceContent)
 
 setAuthorizedContext (&$authorizedContext)
 

Public Attributes

 $_fileIdAndRevision
 
- Public Attributes inherited from AuthorizationPolicy
 $_advice = array()
 
 $_authorizedContext = array()
 

Detailed Description

Abstract class for submission file access policies.

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

Member Function Documentation

& SubmissionFileBaseAccessPolicy::_getCache ( )

Get a cache of submission files. Used because many policy subclasses may be combined to fetch a single submission file.

Returns
array

Definition at line 52 of file SubmissionFileBaseAccessPolicy.inc.php.

References $_fileIdAndRevision.

SubmissionFileBaseAccessPolicy::SubmissionFileBaseAccessPolicy (   $request,
  $fileIdAndRevision = null 
)

Constructor

Parameters
$requestPKPRequest
$fileIdAndRevisionstring If passed, this policy will try to get the submission file from this data.

Definition at line 37 of file SubmissionFileBaseAccessPolicy.inc.php.

Member Data Documentation

string SubmissionFileBaseAccessPolicy::$_fileIdAndRevision

File id and revision, separated with a dash (e.g. 15-1)

Definition at line 29 of file SubmissionFileBaseAccessPolicy.inc.php.

Referenced by _getCache().


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