class AreaAssignment extends Assignment (View source)

Properties

protected Key|null $pk from  Assignment
protected ObjectInterface|null $permissionObject

The object of the permission (for example, a Page instance).

from  Assignment
protected mixed $area
protected $permissionObjectToCheck
private StackAssignment|null $stackAssignment

In case of stacks & global areas, this will contain the Assignment of its collection.

protected array $inheritedPermissions

Mapping between area permissions (keys) and page permissions (values) when an area inherit permissions.

protected array $blockTypeInheritedPermissions

Mapping between area permissions (keys) and block type permissions (values) when an area inherit permissions.

Methods

setPermissionObject(Area $a)

Set the object of the permission (for example, a Page instance).

getPermissionObject()

Get the object of the permission (for example, a Page instance).

setPermissionKeyObject(Key $pk)

No description

string
getPermissionKeyToolsURL(string|null|false $task = false)

No description

clearPermissionAssignment()

No description

assignPermissionAccess(Access $pa)

No description

Access|null
getPermissionAccessObject()

No description

Details

setPermissionObject(Area $a)

Set the object of the permission (for example, a Page instance).

Parameters

Area $a

See also

Assignment::setPermissionObject

ObjectInterface|null getPermissionObject()

Get the object of the permission (for example, a Page instance).

Return Value

ObjectInterface|null

setPermissionKeyObject(Key $pk)

No description

Parameters

Key $pk

See also

Assignment::setPermissionKeyObject

string getPermissionKeyToolsURL(string|null|false $task = false)

No description

Parameters

string|null|false $task

Return Value

string

See also

Assignment::getPermissionKeyToolsURL

clearPermissionAssignment()

assignPermissionAccess(Access $pa)

No description

Access|null getPermissionAccessObject()

No description