PagePermissions

final readonly class \TYPO3\CMS\Core\Domain\Record\PagePermissions

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|null

getOwnerGroupId()

public getOwnerGroupId() : int

Return values

int

getOwnerUserId()

public getOwnerUserId() : int

Return values

int
On this page