Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
PKPSiteAccessPolicy Class Reference
Inheritance diagram for PKPSiteAccessPolicy:

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)

Additional Inherited Members

- Public Attributes inherited from PolicySet
 $_effectIfNoPolicyApplies = AUTHORIZATION_DENY

Detailed Description

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

Definition at line 20 of file

Member Function Documentation

PKPSiteAccessPolicy::effect ( )
See Also

Definition at line 53 of file

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


$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

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

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