19 declare(strict_types=1);
41 return hash(
"sha256", self::class);
49 return "Read client-id from data-directory.";
76 $candidates = array_filter(
78 function (
$c) use ($dir):
bool {
79 if (
$c ===
"." ||
$c ===
"..") {
86 if (count($candidates) === 0) {
88 "There are no directories in the webdata-dir at '$dir'. " .
89 "Probably ILIAS is not installed." 93 if (count($candidates) !== 1) {
97 "There is more than one directory in the webdata-dir at '$dir'. " .
98 "Probably this is an ILIAS installation that uses clients. Clients " .
99 "are not supported anymore since ILIAS $ilias_version " .
100 "(see: https://docu.ilias.de/goto.php?target=wiki_1357_Setup_-_Abandon_Multi_Client)" 110 return dirname(__DIR__, 5) .
"/public/data";
119 return scandir($path);
124 return is_dir($path);
getPreconditions(Setup\Environment $environment)
An objective is a desired state of the system that is supposed to be created by the setup...
scanDirectory(string $path)
isApplicable(Setup\Environment $environment)
achieve(Setup\Environment $environment)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Signals that some goal won't be achievable by actions of the system ever.
const ILIAS_VERSION_NUMERIC
Read the client id of the installation from the data directory.
getHash()
Uses hashed Path.
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.
isNotable()
Defaults to 'true'.
isDirectory(string $path)