32 string $component_dir,
33 protected int $base_location = self::DATADIR
43 return hash(
"sha256", self::class .
"::" . $this->component_dir . $this->base_location);
51 if ($this->base_location === self::DATADIR) {
53 } elseif ($this->base_location === self::WEBDIR) {
54 $data_dir = dirname(__DIR__, 5) .
"/public/data";
91 $this->path = $this->
buildPath($environment);
92 return parent::achieve($environment);
104 $this->path = $this->
buildPath($environment);
105 return parent::isApplicable($environment);
110 if (
null === $environment->
getResource(Environment::RESOURCE_ILIAS_INI)) {
113 return null !== $environment->
getResource(Environment::RESOURCE_CLIENT_ID);
An objective is a desired state of the system that is supposed to be created by the setup...
buildPath(Environment $environment)
__construct(string $component_dir, protected int $base_location=self::DATADIR)
isApplicable(Environment $environment)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkEnvironment(Environment $environment)
achieve(Environment $environment)
Objectives can be achieved.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Signals that some goal won't be achievable by actions of the system ever.
getHash()
Get a hash for this objective.
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
An environment holds resources to be used in the setup process.
__construct(Container $dic, ilPlugin $plugin)
getPreconditions(Environment $environment)
hasConfigFor(string $component)
getConfigFor(string $component)