23 return hash(
"sha256", self::class);
28 return "ILIAS directories are created";
38 $client_id = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_ID);
39 $data_dir = $this->config->getDataDir();
40 $web_dir = dirname(__DIR__, 4) .
"/data";
42 $client_data_dir = $data_dir .
'/' .
$client_id;
47 new Setup\Objective\DirectoryCreatedObjective($data_dir),
48 new Setup\Objective\DirectoryCreatedObjective($web_dir),
49 new Setup\Objective\DirectoryCreatedObjective(
52 new Setup\Objective\DirectoryCreatedObjective(
60 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
62 $ini->setVariable(
"clients",
"datadir", $this->config->getDataDir());
65 throw new Setup\UnachievableException(
"Could not write ilias.ini.php");
76 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
78 return $ini->readVariable(
"clients",
"datadir") !== $this->config->getDataDir();
__construct(\ilFileSystemSetupConfig $config)
isApplicable(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.
achieve(Setup\Environment $environment)