19declare(strict_types=1);
43 return "No major version is skipped in update.";
60 $factory = $environment->
getResource(
Setup\Environment::RESOURCE_SETTINGS_FACTORY);
61 $settings = $factory->settingsFor(
"common");
64 $current_version = $this->data_factory->version($current_version_string);
67 if (($target_version->getMajor() - $current_version->getMajor()) > 1) {
69 "Updates may only be performed from one major version to the " .
70 "next, no major versions may be skipped."
Builds a Color from either hex- or rgb values.
Signals that the setup is not executable at all.
__construct(Data\Factory $data_factory)
isApplicable(Setup\Environment $environment)
getPreconditions(Setup\Environment $environment)
achieve(Setup\Environment $environment)
Data Factory $data_factory
const ILIAS_VERSION_NUMERIC
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...