\Alddesign\Crudkit\ClassesRestrictionSet

Defines a set of restrictions or rights to access pages and specific actions on pages. The $type 'allow-all' or 'deny-all' defines its behavior. A RestrictionSet belongs to a User.

Summary

Methods
Properties
Constants
__construct()
hasAccessTo()
No public properties found
ALLOWED_TYPES
No protected methods found
No protected properties found
N/A
No private methods found
$type
$entries
N/A

Constants

ALLOWED_TYPES

ALLOWED_TYPES = array('allow-all', 'deny-all')

Properties

$type

$type : 

Type

$entries

$entries : 

Type

Methods

__construct()

__construct(string  $type, array<mixed,\Alddesign\Crudkit\Classes\RestrictionSetEntry>  $entries = array()) 

Creates new set of restrictions (permissions).

Parameters

string $type

'allow-all' = allow everything except the entries you define, 'deny-all' = deny everything except the entries you define

array<mixed,\Alddesign\Crudkit\Classes\RestrictionSetEntry> $entries

Array of entires

hasAccessTo()

hasAccessTo(string  $action, string  $pageId) 

Checks if this permission set has access to a specific page/action

Parameters

string $action
string $pageId