19 declare(strict_types=1);
40 return hash(
"sha256", self::class . $this->type .
":" . $this->src_ops .
":" . $this->dest_ops);
45 return "Clone rbac operation from $this->src_ops to $this->dest_ops";
54 $env = parent::achieve($environment);
55 $db->insert(
"settings", [
56 "module" => [
"text", $this->type],
58 "value" => [
"text",
"1"]
74 "SELECT value FROM settings " .
75 " WHERE module = %s AND keyword = %s",
79 if ($rec =
$db->fetchAssoc($set)) {
80 if ($rec[
"value"] ===
"1") {
static _getCustomRBACOperationId(string $operation, ?\ilDBInterface $ilDB=null)
achieve(Environment $environment)
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...
An environment holds resources to be used in the setup process.
__construct(Container $dic, ilPlugin $plugin)
__construct(string $type, string $src_ops, string $dest_ops)
isApplicable(Environment $environment)