ILIAS  release_8 Revision v8.24
class.ilDBStepReaderExistsObjective.php
Go to the documentation of this file.
1<?php
2
19use ILIAS\Setup;
20
22{
23 public function getHash(): string
24 {
25 return hash("sha256", self::class);
26 }
27
28 public function getLabel(): string
29 {
30 return "The step reader for database update steps exists.";
31 }
32
33 public function isNotable(): bool
34 {
35 return true;
36 }
37
38 public function getPreconditions(Setup\Environment $environment): array
39 {
40 return [
42 ];
43 }
44
45 public function achieve(Setup\Environment $environment): Setup\Environment
46 {
47 return $environment
49 ilDBStepReader::class,
50 new ilDBStepReader()
51 );
52 }
53
57 public function isApplicable(Setup\Environment $environment): bool
58 {
59 $execution_db = $environment->getResource(ilDBStepReader::class);
60 return is_null($execution_db);
61 }
62}
isApplicable(Setup\Environment $environment)
@inheritDoc
getPreconditions(Setup\Environment $environment)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.
Definition: Environment.php:28
withResource(string $id, $resource)
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...