PermissionController.php
29 * | _in_ `operations` | Array of resource/context/action triples in the form _resource?context?action_
30 * | _out_ `result` | Associative array with the operations as keys and boolean values indicating if permissions are given or not
42 * | _in_ `operations` | Array of resource/context/action triples in the form _resource?context?action_
44 * | _out_ `result` | Associative array with the operations as keys and boolean values indicating if permissions are given or not
57 * | _out_ `result` | Assoziative array with keys 'default' (boolean), 'allow', 'deny' (arrays of role names) or null, if no permissions are defined.
68 * | _in_ `permissions` | Assoziative array with keys 'default' (boolean), 'allow', 'deny' (arrays of role names).
106 if ($request->getAction() == 'createPermission' || $request->getAction() == 'removePermission' ||
const PERMISSION_MODIFIER_ALLOW
Definition: PermissionManager.php:22
doExecute($method=null)
Definition: PermissionController.php:139
requireTransaction()
Start or join a transaction that will be committed at the end of execution.
Definition: Controller.php:334
validate()
Definition: PermissionController.php:102
ApplicationError is used to signal errors that occur while processing a request.
Definition: ApplicationError.php:41
static get($code, $data=null)
Factory method for retrieving a predefined error instance.
Definition: ApplicationError.php:144
PermissionController checks, gets and sets permissions.
Definition: PermissionController.php:97
An action key is a combination of a resource, context and action that is represented as a string.
Definition: ActionKey.php:22
Controller is the base class of all controllers.
Definition: Controller.php:49
PermissionManager implementations are used to handle all authorization requests.
Definition: PermissionManager.php:20
const PERMISSION_MODIFIER_DENY
Definition: PermissionManager.php:23