3 declare(strict_types=1);
    34         $this->step_class = get_class($steps);
    39         $execution_log = $environment->getResource(ilDatabaseUpdateStepExecutionLog::class);
    40         $step_reader = $environment->getResource(ilDBStepReader::class);
    43             Metric::STABILITY_STABLE,
    45             (
string) ($execution_log->getLastFinishedStep($this->step_class))
    48         $available_version = 
new Metric(
    49             Metric::STABILITY_STABLE,
    51             (
string) $step_reader->getLatestStepNumber($this->step_class, self::STEP_METHOD_PREFIX)
    54         $update_required = 
new Metric(
    55             Metric::STABILITY_STABLE,
    57             $execution_log->getLastFinishedStep($this->step_class) !== $step_reader->getLatestStepNumber(
    59                 self::STEP_METHOD_PREFIX
    64             Metric::STABILITY_STABLE,
    65             Metric::TYPE_COLLECTION,
    68                 "available_version" => $available_version,
    69                 "update_required" => $update_required
    73         $storage->
store($this->step_class, $collection);
    87         return hash(
"sha256", static::class . $this->step_class);
 
store(string $key, Metric $metric)
Store some metric in the storage. 
 
collectFrom(Setup\Environment $environment, Storage $storage)
 
A metric is something we can measure about the system. 
 
__construct(Storage $storage, ilDatabaseUpdateSteps $steps)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getTentativePreconditions(Setup\Environment $environment)
 
An environment holds resources to be used in the setup process.