3declare(strict_types=1);
 
   23        return hash(
"sha256", self::class);
 
   28        return "Update operation order (operation=$this->operation;pos=$this->pos)";
 
   45        $db = $environment->
getResource(Environment::RESOURCE_DATABASE);
 
   49            [
'op_order' => [
"integer", $this->pos]],
 
   50            [
"operation" => [
"text", $this->operation]]
 
   58        $db = $environment->
getResource(Environment::RESOURCE_DATABASE);
 
   61            "SELECT ops_id" . PHP_EOL
 
   62            . 
"FROM rbac_operations" . PHP_EOL
 
   63            . 
"WHERE operation = " . $db->quote($this->operation, 
"text") . PHP_EOL
 
   66        return $db->numRows($db->query($sql)) == 1;
 
__construct(string $operation, int $pos)
 
isApplicable(Environment $environment)
 
getPreconditions(Environment $environment)
 
achieve(Environment $environment)
 
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...