PHP Class SubmissionFileBaseAccessPolicy, pkp-lib

Inheritance: extends AuthorizationPolicy
Exibir arquivo Open project: pkp/pkp-lib Class Usage Examples

Public Properties

Property Type Description
$_fileIdAndRevision File id and revision, separated with a dash (e.g. 15-1)
$_request PKPRequest

Public Methods

Method Description
__construct ( $request, $fileIdAndRevision = null ) Constructor
_getCache ( ) : array Get a cache of submission files. Used because many policy subclasses may be combined to fetch a single submission file.
getRequest ( ) : PKPRequest Get the current request object.
getSubmissionFile ( $request ) : SubmissionFile Get the requested submission file.

Method Details

__construct() public method

Constructor
public __construct ( $request, $fileIdAndRevision = null )
$request PKPRequest
$fileIdAndRevision string If passed, this policy will try to get the submission file from this data.

_getCache() public method

Get a cache of submission files. Used because many policy subclasses may be combined to fetch a single submission file.
public _getCache ( ) : array
return array

getRequest() public method

Get the current request object.
public getRequest ( ) : PKPRequest
return PKPRequest

getSubmissionFile() public method

Get the requested submission file.
public getSubmissionFile ( $request ) : SubmissionFile
$request PKPRequest
return SubmissionFile

Property Details

$_fileIdAndRevision public_oe property

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

$_request public_oe property

public PKPRequest $_request
return PKPRequest