RestrictionSet
in package
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.
Table of Contents
- __construct() : mixed
- Creates new set of restrictions (permissions).
Methods
__construct()
Creates new set of restrictions (permissions).
public
__construct(string $type[, array<string|int, RestrictionSetEntry> $entries = [] ]) : mixed
Parameters
- $type : string
-
'allow-all' = allow everything except the entries you define, 'deny-all' = deny everything except the entries you define
- $entries : array<string|int, RestrictionSetEntry> = []
-
Array of entires