19declare(strict_types=1);
30 "This will reset failing steps in the setup progress. However -\n" .
31 "those steps failed for a reason!\n" .
32 "A step may fail due to a programming error, or, more likely, to some\n" .
33 "circumstances in your environment, e.g. inconsistent data in the DB,\n" .
34 "missing or unexpected files, etc.. Please double-check for the cause\n" .
35 "and only continue if you are certain about and fine with the consequences.\n" .
43 return hash(
"sha256", self::class);
49 return "failing update steps are removed.";
70 $environment = parent::achieve($environment);
71 $db = $environment->
getResource(Environment::RESOURCE_DATABASE);
72 $db->manipulate(
'DELETE FROM il_db_steps WHERE finished IS NULL');
82 $db = $environment->
getResource(Environment::RESOURCE_DATABASE);
83 $query =
'SELECT class FROM il_db_steps WHERE finished IS NULL';
84 return $db->numRows($db->query($query)) > 0;
An admin needs to confirm something to achieve this objective.
Read the client id of the installation from the data directory.
achieve(Environment $environment)
Objectives can be achieved.
getHash()
Get a hash for this objective.The hash of two objectives must be the same, if they are the same objec...
getLabel()
Get a label that describes this objective.
getPreconditions(Environment $environment)
isApplicable(Environment $environment)
@inheritDoc
isNotable()
Get to know if this is an interesting objective for a human.
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.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc