3 declare(strict_types=1);
35 self::RBAC_OP_EDIT_PERMISSIONS,
36 self::RBAC_OP_VISIBLE,
52 return hash(
"sha256", self::class .
"::" . $this->type);
57 $operations = implode(
",", $this->valid_operations);
58 return "Add standard rbac operations (type=$this->type;operations=$operations)";
75 $db = $environment->
getResource(Environment::RESOURCE_DATABASE);
78 foreach ($this->valid_operations as $ops_id) {
79 if ($ops_id == self::RBAC_OP_COPY) {
88 "typ_id" => [
"integer", $type_id],
89 "ops_id" => [
"integer", $ops_id]
92 $db->insert(
"rbac_ta", $values);
100 $db = $environment->
getResource(Environment::RESOURCE_DATABASE);
103 foreach ($this->valid_operations as $ops_id) {
104 if ($ops_id == self::RBAC_OP_COPY) {
getPreconditions(Environment $environment)
__construct(string $type)
isApplicable(Environment $environment)
const RBAC_OP_EDIT_PERMISSIONS
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
static _getCustomRBACOperationId(string $operation, \ilDBInterface $ilDB=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.
static _isRBACOperation(int $type_id, int $ops_id, \ilDBInterface $ilDB=null)
achieve(Environment $environment)
static _getObjectTypeIdByTitle(string $type, \ilDBInterface $ilDB=null)