Menu

## RestrictionSet
in package

RestrictionSet.php : 14

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

ALLOWED_TYPES = ['allow-all', 'deny-all']
$entries : mixed
$type : mixed
__construct() : mixed
  Creates new set of restrictions (permissions).
hasAccessTo() : mixed
  Checks if this permission set has access to a specific page/action

### Constants

#### ALLOWED_TYPES

RestrictionSet.php : 16
`public mixed ALLOWED_TYPES = ['allow-all', 'deny-all']`

##### Tags

internal

### Properties

#### $entries

RestrictionSet.php : 18
`private mixed $entries = []`

##### Tags

internal

#### $type

RestrictionSet.php : 17
`private mixed $type = 'allow-all'`

##### Tags

internal

### Methods

#### __construct()

RestrictionSet.php : 26

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

##### Return values

mixed —

#### hasAccessTo()

RestrictionSet.php : 51

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

`public hasAccessTo(string $action, string $pageId) : mixed`

##### Parameters

$action : string
$pageId : string

##### Tags

internal

##### Return values

mixed —

## Search results