Open Journal Systems  3.3.0
PKPPublicAccessPolicy Class Reference
Inheritance diagram for PKPPublicAccessPolicy:
HandlerOperationPolicy AuthorizationPolicy

Public Member Functions

 __construct ($request, $operations, $message='user.authorization.privateOperation')
 
 effect ()
 
- Public Member Functions inherited from HandlerOperationPolicy
 _checkOperationWhitelist ()
 
 getOperations ()
 
getRequest ()
 
- Public Member Functions inherited from AuthorizationPolicy
 __construct ($message=null)
 
 addAuthorizedContextObject ($assocType, &$authorizedObject)
 
 applies ()
 
getAdvice ($adviceType)
 
getAuthorizedContext ()
 
getAuthorizedContextObject ($assocType)
 
 hasAdvice ($adviceType)
 
 hasAuthorizedContextObject ($assocType)
 
 setAdvice ($adviceType, &$adviceContent)
 
 setAuthorizedContext (&$authorizedContext)
 

Additional Inherited Members

- Data Fields inherited from HandlerOperationPolicy
 $_operations = array()
 
 $_request
 
- Data Fields inherited from AuthorizationPolicy
 $_advice = array()
 
 $_authorizedContext = array()
 

Detailed Description

Class to control access to handler operations based on an operation whitelist.

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

Constructor & Destructor Documentation

◆ __construct()

PKPPublicAccessPolicy::__construct (   $request,
  $operations,
  $message = 'user.authorization.privateOperation' 
)

Constructor

Parameters
$requestPKPRequest
$operationsarray|string either a single operation or a list of operations that this policy is targeting.
$messagestring a message to be displayed if the authorization fails

Reimplemented from HandlerOperationPolicy.

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

Member Function Documentation

◆ effect()

PKPPublicAccessPolicy::effect ( )

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