Overview

Namespaces

  • Nethgui
    • Adapter
    • Authorization
    • Component
    • Controller
      • Collection
      • Table
    • Exception
    • Log
    • Model
    • Module
      • Help
      • Notification
    • Renderer
    • Serializer
    • System
    • Test
      • Tool
      • Unit
        • Nethgui
          • Adapter
            • ParameterSet
          • Authorization
          • Log
          • Module
            • Notification
          • Renderer
          • Serializer
          • System
          • Utility
          • View
        • Test
          • Tool
    • Utility
    • View
    • Widget
      • Xhtml
  • None
  • Test
    • Tool

Classes

  • AuthorizedModuleSet
  • JsonPolicyDecisionPoint
  • LazyAccessControlResponse
  • PolicyRule
  • User

Interfaces

  • AccessControlResponseInterface
  • AuthorizationAttributesProviderInterface
  • PolicyDecisionPointInterface
  • PolicyEnforcementPointInterface
  • UserInterface
  • Overview
  • Namespace
  • Class
  • Deprecated

Class PolicyRule

Authorization rules decide if a Subject is allowed to perform an Action on a given Resource

Rules are ordered by their specificity/generality, so that more specific rules are considered more relevant to the authorization decision.

Namespace: Nethgui\Authorization
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
Located at Authorization/PolicyRule.php
Methods summary
public static Nethgui\Authorization\PolicyRule
# createFromObject( object $o )

Construct an instance from a plain object

Construct an instance from a plain object

Parameters

$o

Returns

Nethgui\Authorization\PolicyRule
public string
# getDescription( )

Returns

string
public integer
# getIdentifier( )

Returns

integer
public
# isAllow( )
public boolean
# isApplicableTo( array $request )

Parameters

$request

Returns

boolean
public boolean
# isFinal( )

If a rule is not final it is overridable by another rule with the same Identifier

If a rule is not final it is overridable by another rule with the same Identifier

Returns

boolean
public integer
# compare( Nethgui\Authorization\PolicyRule $other )

Return an integer less than, equal to, or greater than zero if the this instance is considered to be respectively less than, equal to, or greater than the $other rule;

Return an integer less than, equal to, or greater than zero if the this instance is considered to be respectively less than, equal to, or greater than the $other rule;

Parameters

$other

Returns

integer
Nethgui Framework API documentation generated by ApiGen