19 declare(strict_types=1);
27 return hash(
"sha256", self::class);
32 return "The ilias.ini.php and client.ini.php are populated.";
42 $client_id = (string) $environment->getResource(
Setup\Environment::RESOURCE_CLIENT_ID);
44 throw new \LogicException(
45 "Expected a client_id in the environment." 54 new Setup\Objective\DirectoryCreatedObjective(dirname(__DIR__, 4) .
"/public/data"),
55 new Setup\Objective\DirectoryCreatedObjective($client_dir),
56 new Setup\Condition\CanCreateFilesInDirectoryCondition($client_dir),
57 new Setup\Condition\CanCreateFilesInDirectoryCondition(dirname(__DIR__, 4))
63 $client_id = (string) $environment->getResource(
Setup\Environment::RESOURCE_CLIENT_ID);
66 if (!file_exists(
$path)) {
68 $ini->GROUPS = parse_ini_file(__DIR__ .
"/../ilias.master.ini.php",
true);
70 $environment = $environment
71 ->withResource(
Setup\Environment::RESOURCE_ILIAS_INI,
$ini);
75 if (!file_exists(
$path)) {
77 $client_ini->GROUPS = parse_ini_file(__DIR__ .
"/../client.master.ini.php",
true);
79 $environment = $environment
80 ->withResource(
Setup\Environment::RESOURCE_CLIENT_INI, $client_ini);
91 $client_id = (string) $environment->getResource(
Setup\Environment::RESOURCE_CLIENT_ID);
99 return dirname(__DIR__, 4) .
"/public/data/" .
$client_id;
104 return $this->
getClientDir($client_id) .
"/client.ini.php";
109 return dirname(__DIR__, 4) .
"/ilias.ini.php";
getPreconditions(Setup\Environment $environment)
achieve(Setup\Environment $environment)
getClientDir(string $client_id)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
isApplicable(Setup\Environment $environment)
getClientIniPath(string $client_id)
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.