PagePermissions
final readonly class \
Contains the permission settings stored in a page record: the owning backend user and group, and what the owner, the group and everybody else may do.
These settings are the same for every backend user. Whether a specific backend user is granted a permission also depends on the user being an administrator and on the groups the user is member of.
Table of Contents
Methods
- __construct() : mixed
- fromRecord() : self|null
- Returns null if the record does not contain all permission fields.
- getEverybodyPermissions() : Permission
- getGroupPermissions() : Permission
- getOwnerGroupId() : int
- getOwnerPermissions() : Permission
- getOwnerUserId() : int
Methods
__construct()
public
__construct(int $ownerUserId, int $ownerGroupId, int $ownerPermissions, int $groupPermissions, int $everybodyPermissions) : mixed
Parameters
- $ownerUserId : int
- $ownerGroupId : int
- $ownerPermissions : int
- $groupPermissions : int
- $everybodyPermissions : int
fromRecord()
Returns null if the record does not contain all permission fields.
public
static fromRecord(array $record) : self|null
Parameters
- $record : array
Return values
self|nullgetEverybodyPermissions()
public
getEverybodyPermissions() : Permission
Return values
PermissiongetGroupPermissions()
public
getGroupPermissions() : Permission
Return values
PermissiongetOwnerGroupId()
public
getOwnerGroupId() : int
Return values
intgetOwnerPermissions()
public
getOwnerPermissions() : Permission
Return values
PermissiongetOwnerUserId()
public
getOwnerUserId() : int