31 string $component_dir,
32 int $base_location = self::DATADIR
42 return hash(
"sha256", self::class .
"::" . $this->component_dir . $this->base_location);
47 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
48 $client_id = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_ID);
50 if ($this->base_location === self::DATADIR) {
52 } elseif ($this->base_location === self::WEBDIR) {
53 $data_dir = dirname(__DIR__, 4) .
"/data";
70 if ($environment->hasConfigFor(
"filesystem")) {
71 $config = $environment->getConfigFor(
"filesystem");
86 throw new Setup\UnachievableException(
"Environment is not ready for this objective");
88 $this->path = $this->
buildPath($environment);
89 return parent::achieve($environment);
100 $this->path = $this->
buildPath($environment);
101 return parent::isApplicable($environment);
106 if (null === $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI)) {
109 if (null === $environment->getResource(Setup\Environment::RESOURCE_CLIENT_ID)) {
__construct(string $component_dir, int $base_location=self::DATADIR)
checkEnvironment(Setup\Environment $environment)
buildPath(Setup\Environment $environment)
achieve(Setup\Environment $environment)
isApplicable(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.
getPreconditions(Setup\Environment $environment)