Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
PKPSiteAccessPolicy Class Reference
Inheritance diagram for PKPSiteAccessPolicy:
PolicySet

Public Member Functions

 effect ()
 
 PKPSiteAccessPolicy (&$request, $operations, $roleAssignments, $message= 'user.authorization.loginRequired')
 
- Public Member Functions inherited from PolicySet
 addPolicy (&$policyOrPolicySet, $addToTop=false)
 
 getCombiningAlgorithm ()
 
 getEffectIfNoPolicyApplies ()
 
getPolicies ()
 
 PolicySet ($combiningAlgorithm=COMBINING_DENY_OVERRIDES)
 
 setEffectIfNoPolicyApplies ($effectIfNoPolicyApplies)
 

Detailed Description

Class to that makes sure that a user is logged in.

Definition at line 20 of file PKPSiteAccessPolicy.inc.php.

Member Function Documentation

PKPSiteAccessPolicy::effect ( )
See Also
AuthorizationPolicy::effect()

Definition at line 53 of file PKPSiteAccessPolicy.inc.php.

PKPSiteAccessPolicy::PKPSiteAccessPolicy ( $request,
  $operations,
  $roleAssignments,
  $message = 'user.authorization.loginRequired' 
)

Constructor

Parameters
$requestPKPRequest
$operationsarray|string either a single operation or a list of operations that this policy is targeting.
$roleAssignmentsarray|int Either an array of role -> operation assignments or the constant SITE_ACCESS_ALL_ROLES
$messagestring a message to be displayed if the authorization fails

Definition at line 30 of file PKPSiteAccessPolicy.inc.php.

References PolicySet\addPolicy(), and PolicySet\PolicySet().


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