3declare(strict_types=1);
38 return hash(
"sha256", self::class . $this->type . $this->ops_name);
43 return "Delete webfeed creation permissions $this->type and name $this->ops_name";
54 new \ilDatabaseInitializedObjective()
63 "SELECT * FROM rbac_operations " .
64 " WHERE operation = %s ",
68 while ($rec =
$db->fetchAssoc($set)) {
69 $this->ops_id = (
int) $rec[
"ops_id"];
70 if ($this->ops_id > 0) {
73 "SELECT obj_id FROM object_data"
74 .
" WHERE type = 'typ'"
75 .
" AND title = " .
$db->quote($this->type,
'text')
78 if ($rec2 =
$db->fetchAssoc($set2)) {
79 $type_id = (
int) $rec2[
"obj_id"];
83 "DELETE FROM rbac_ta" . PHP_EOL
84 .
"WHERE typ_id = " .
$db->quote($type_id,
"integer") . PHP_EOL
85 .
"AND ops_id = " .
$db->quote($this->ops_id,
"integer") . PHP_EOL
88 $db->manipulate($sql);
91 "DELETE FROM rbac_templates" . PHP_EOL
92 .
" WHERE type = " .
$db->quote($this->type,
"text") . PHP_EOL
93 .
" AND ops_id = " .
$db->quote($this->ops_id,
"integer") . PHP_EOL
96 $db->manipulate($sql);
achieve(Environment $environment)
getPreconditions(Environment $environment)
__construct(string $type, string $ops_name)
An environment holds resources to be used in the setup process.
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...