28 return hash(
"sha256", self::class);
33 return "The ilias.ini.php and client.ini.php are loaded";
43 if (self::$might_populate_ini_files_as_well) {
45 new Setup\Objective\ClientIdReadObjective(),
50 new Setup\Objective\ClientIdReadObjective(),
57 $client_id = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_ID);
59 throw new Setup\UnachievableException(
60 "To initialize the ini-files, we need a client id, but it does not " .
61 "exist in the environment." 65 if ($environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI) == null) {
66 $path = dirname(__DIR__, 2) .
"/ilias.ini.php";
69 $environment = $environment
70 ->withResource(Setup\Environment::RESOURCE_ILIAS_INI,
$ini);
73 if ($environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI) == null) {
77 $environment = $environment
78 ->withResource(Setup\Environment::RESOURCE_CLIENT_INI, $client_ini);
89 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
90 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
92 return is_null(
$ini) || is_null($client_ini);
97 return dirname(__DIR__, 2) .
"/data/$client_id";
static $might_populate_ini_files_as_well
isApplicable(Setup\Environment $environment)
achieve(Setup\Environment $environment)
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.