class BlockAssignment 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 $permissionObjectToCheck

Methods

setPermissionObject(Block $b)

No description

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()

No description

Details

setPermissionObject(Block $b)

No description

Parameters

Block $b

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

string getPermissionKeyTaskURL(string $task = '', array $options = [])

Build the URL of a task (replaces the previous getPermissionKeyToolsURL method)

Parameters

string $task

The task to be executed ('save_permission' if empty)

array $options

Optional arguments (will be added to the query string).

Return Value

string

See also

Assignment::getPermissionKeyTaskURL

clearPermissionAssignment()

No description

assignPermissionAccess(Access $pa)

No description

Parameters

Access $pa

Access|null getPermissionAccessObject()

No description