19 declare(strict_types=1);
37 return hash(
"sha256", self::class);
42 return "Delete rbac operation and rbac template for type $this->type and id $this->ops_id";
59 $db = $environment->
getResource(Environment::RESOURCE_DATABASE);
64 "DELETE FROM rbac_ta" . PHP_EOL
65 .
"WHERE typ_id = " . $db->quote($type_id,
"integer") . PHP_EOL
66 .
"AND ops_id = " . $db->quote($this->ops_id,
"integer") . PHP_EOL
69 $db->manipulate($sql);
72 "DELETE FROM rbac_templates" . PHP_EOL
73 .
"WHERE type = " . $db->quote($this->type,
"text") . PHP_EOL
74 .
"AND ops_id = " . $db->quote($this->ops_id,
"integer") . PHP_EOL
77 $db->manipulate($sql);
achieve(Environment $environment)
getPreconditions(Environment $environment)
__construct(string $type, int $ops_id)
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isApplicable(Environment $environment)
An environment holds resources to be used in the setup process.
static _getObjectTypeIdByTitle(string $type, ?\ilDBInterface $ilDB=null)