19declare(strict_types=1);
31 private const string TYPE =
'usrf';
33 private const int READ = 3;
37 return hash(
'sha256', self::class);
42 return (
'Add the "Read All Accounts" permission to the user folder');
67 $new_id = $this->getAddedOperationId($environment);
68 if ($new_id !==
null) {
82 (new \ilAccessRBACOperationDeletedObjective(
93 return $this->getAddedOperationId($environment) ===
null;
96 private function getAddedOperationId(
Environment $environment): ?
int
101 $query =
'SELECT ops_id FROM rbac_operations WHERE operation ="read_all_accounts"';
102 $result =
$db->query($query);
103 while ($row =
$db->fetchAssoc($result)) {
104 return (
int) $row[
'ops_id'];
isNotable()
Get to know if this is an interesting objective for a human.
getLabel()
Get a label that describes this objective.
isApplicable(Environment $environment)
Get to know whether the objective is applicable.
achieve(Environment $environment)
Objectives can be achieved.
getHash()
Get a hash for this objective.
getPreconditions(Environment $environment)
Objectives might depend on other objectives.
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.
An objective is a desired state of the system that is supposed to be created by the setup.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...