AreaAssignment
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
Get the object of the permission (for example, a Page instance).
Build the URL of a task (replaces the previous getPermissionKeyToolsURL method)
No description
Get the Access object for the Area or, in case of Stacks and Global Areas, the Access object for the Stack/Global Area.
Get the Access object for the Area, even in case of Stacks and Global Areas.
Details
setPermissionObject(Area $a)
Set the object of the permission (for example, a Page instance).
ObjectInterface|null
getPermissionObject()
Get the object of the permission (for example, a Page instance).
setPermissionKeyObject(Key $pk)
No description
string
getPermissionKeyTaskURL(string $task = '', array $options = [])
Build the URL of a task (replaces the previous getPermissionKeyToolsURL method)
clearPermissionAssignment()
No description
assignPermissionAccess(Access $pa)
No description
Access|null
getPermissionAccessObject()
Get the Access object for the Area or, in case of Stacks and Global Areas, the Access object for the Stack/Global Area.
{@inheritdoc}
Access|null
getAreaPermissionAccessObject()
Get the Access object for the Area, even in case of Stacks and Global Areas.