19declare(strict_types=1);
29 "This will reset failing steps in the setup progress. However -\n" .
30 "those steps failed for a reason!\n" .
31 "A step may fail due to a programming error, or, more likely, to some\n" .
32 "circumstances in your environment, e.g. inconsistent data in the DB,\n" .
33 "missing or unexpected files, etc.. Please double-check for the cause\n" .
34 "and only continue if you are certain about and fine with the consequences.\n" .
41 return hash(
"sha256", self::class);
46 return "failing update steps are removed.";
64 return $preconditions;
69 $environment = parent::achieve($environment);
70 $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
71 $db->manipulate(
'DELETE FROM il_db_steps WHERE finished IS NULL');
80 $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
81 $query =
'SELECT class FROM il_db_steps WHERE finished IS NULL';
82 return $db->numRows($db->query(
$query)) > 0;
Read the client id of the installation from the data directory.
isApplicable(Setup\Environment $environment)
@inheritDoc
achieve(Setup\Environment $environment)
getPreconditions(Setup\Environment $environment)
An environment holds resources to be used in the setup process.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...