Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($combiningAlgorithm=COMBINING_DENY_OVERRIDES) | |
addPolicy ($policyOrPolicySet, $addToTop=false) | |
getCombiningAlgorithm () | |
getEffectIfNoPolicyApplies () | |
& | getPolicies () |
setEffectIfNoPolicyApplies ($effectIfNoPolicyApplies) | |
Data Fields | |
$_combiningAlgorithm | |
$_effectIfNoPolicyApplies = AUTHORIZATION_DENY | |
$_policies = array() | |
An ordered list of policies. Policy sets can be added to decision managers like policies. The decision manager will evaluate the contained policies in the order they were added.
NB: PolicySets can be nested.
Definition at line 26 of file PolicySet.inc.php.
PolicySet::__construct | ( | $combiningAlgorithm = COMBINING_DENY_OVERRIDES | ) |
Constructor
$combiningAlgorithm | int COMBINING_... |
Reimplemented in ContextPolicy.
Definition at line 50 of file PolicySet.inc.php.
PolicySet::addPolicy | ( | $policyOrPolicySet, | |
$addToTop = false |
|||
) |
Add a policy or a nested policy set.
$policyOrPolicySet | AuthorizationPolicy|PolicySet |
$addToTop | boolean whether to insert the new policy to the top of the list. |
Definition at line 63 of file PolicySet.inc.php.
Referenced by ContextAccessPolicy\__construct(), ContextPolicy\__construct(), AuthorDashboardAccessPolicy\__construct(), EditorDecisionAccessPolicy\__construct(), PublicationWritePolicy\__construct(), QueryAccessPolicy\__construct(), ReviewStageAccessPolicy\__construct(), QueryWorkflowStageAccessPolicy\__construct(), PublicationAccessPolicy\__construct(), SubmissionAccessPolicy\__construct(), PKPSiteAccessPolicy\__construct(), WorkflowStageAccessPolicy\__construct(), PluginAccessPolicy\__construct(), and SubmissionFileAccessPolicy\buildFileAccessPolicy().
PolicySet::getCombiningAlgorithm | ( | ) |
Return the combining algorithm
Definition at line 84 of file PolicySet.inc.php.
References $_combiningAlgorithm.
PolicySet::getEffectIfNoPolicyApplies | ( | ) |
Get the default effect if none of the policies in the set applies
Definition at line 103 of file PolicySet.inc.php.
References $_effectIfNoPolicyApplies.
& PolicySet::getPolicies | ( | ) |
Get all policies within this policy set.
Definition at line 76 of file PolicySet.inc.php.
References $_policies.
PolicySet::setEffectIfNoPolicyApplies | ( | $effectIfNoPolicyApplies | ) |
Set the default effect if none of the policies in the set applies
$effectIfNoPolicyApplies | integer |
Definition at line 92 of file PolicySet.inc.php.
integer PolicySet::$_combiningAlgorithm |
Definition at line 37 of file PolicySet.inc.php.
Referenced by getCombiningAlgorithm().
integer PolicySet::$_effectIfNoPolicyApplies = AUTHORIZATION_DENY |
the default effect if none of the policies in the set applies
Definition at line 43 of file PolicySet.inc.php.
Referenced by getEffectIfNoPolicyApplies().
array PolicySet::$_policies = array() |
Definition at line 31 of file PolicySet.inc.php.
Referenced by getPolicies().