|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct ($request, $operations, $message=null) | |
| _checkOperationWhitelist () | |
| getOperations () | |
| & | getRequest () |
Public Member Functions inherited from AuthorizationPolicy | |
| __construct ($message=null) | |
| addAuthorizedContextObject ($assocType, &$authorizedObject) | |
| applies () | |
| effect () | |
| & | getAdvice ($adviceType) |
| & | getAuthorizedContext () |
| & | getAuthorizedContextObject ($assocType) |
| hasAdvice ($adviceType) | |
| hasAuthorizedContextObject ($assocType) | |
| setAdvice ($adviceType, &$adviceContent) | |
| setAuthorizedContext (&$authorizedContext) | |
Data Fields | |
| $_operations = array() | |
| $_request | |
Data Fields inherited from AuthorizationPolicy | |
| $_advice = array() | |
| $_authorizedContext = array() | |
Abstract base class that provides infrastructure to control access to handler operations.
Definition at line 18 of file HandlerOperationPolicy.inc.php.
| HandlerOperationPolicy::__construct | ( | $request, | |
| $operations, | |||
$message = null |
|||
| ) |
Constructor
| $request | PKPRequest |
| $operations | array|string either a single operation or a list of operations that this policy is targeting. |
| $message | string a message to be displayed if the authorization fails |
Reimplemented in PKPPublicAccessPolicy.
Definition at line 38 of file HandlerOperationPolicy.inc.php.
| HandlerOperationPolicy::_checkOperationWhitelist | ( | ) |
Check whether the requested operation is on the list of permitted operations.
Definition at line 80 of file HandlerOperationPolicy.inc.php.
Referenced by PKPPublicAccessPolicy\effect(), AssignedStageRoleHandlerOperationPolicy\effect(), and RoleBasedHandlerOperationPolicy\effect().
| HandlerOperationPolicy::getOperations | ( | ) |
Return the operations whitelist.
Definition at line 67 of file HandlerOperationPolicy.inc.php.
References $_operations.
| & HandlerOperationPolicy::getRequest | ( | ) |
Return the request.
Definition at line 59 of file HandlerOperationPolicy.inc.php.
References $_request.
Referenced by RoleBasedHandlerOperationPolicy\effect().
| array HandlerOperationPolicy::$_operations = array() |
the target operations
Definition at line 29 of file HandlerOperationPolicy.inc.php.
Referenced by getOperations().
| PKPRequest HandlerOperationPolicy::$_request |
Definition at line 23 of file HandlerOperationPolicy.inc.php.
Referenced by getRequest().