PHP Class SubmissionFileBaseAccessPolicy, pkp-lib

Inheritance: extends AuthorizationPolicy
Afficher le fichier Open project: pkp/pkp-lib Class Usage Examples

Méthodes publiques

Свойство Type Description
$_fileIdAndRevision File id and revision, separated with a dash (e.g. 15-1)
$_request PKPRequest

Méthodes publiques

Méthode 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 méthode

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 méthode

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

getRequest() public méthode

Get the current request object.
public getRequest ( ) : PKPRequest
Résultat PKPRequest

getSubmissionFile() public méthode

Get the requested submission file.
public getSubmissionFile ( $request ) : SubmissionFile
$request PKPRequest
Résultat 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
Résultat PKPRequest