26        return hash(
"sha256", self::class);
 
   34        return "Read client-id from data-directory.";
 
   61        $candidates = array_filter(
 
   63            function (
$c) use ($dir) {
 
   64                if (
$c == 
"." || 
$c == 
"..") {
 
   71        if (count($candidates) == 0) {
 
   73                "There are no directories in the webdata-dir at '$dir'. " .
 
   74                "Probably ILIAS is not installed." 
   78        if (count($candidates) != 1) {
 
   82                "There is more than one directory in the webdata-dir at '$dir'. " .
 
   83                "Probably this is an ILIAS installation that uses clients. Clients " .
 
   84                "are not supported anymore since ILIAS $ilias_version " .
 
   85                "(see: https://docu.ilias.de/goto.php?target=wiki_1357_Setup_-_Abandon_Multi_Client)" 
   95        return dirname(__DIR__, 3) . 
"/data";
 
  100        return scandir($path);
 
  105        return is_dir($path);
 
An exception for terminatinating execution or to throw for unit testing.
Read the client id of the installation from the data directory.
getHash()
Uses hashed Path.
isDirectory(string $path)
achieve(Setup\Environment $environment)
@inheritdocs
isNotable()
Defaults to 'true'.
getPreconditions(Setup\Environment $environment)
@inheritdocs
isApplicable(Setup\Environment $environment)
@inheritDoc
scanDirectory(string $path)
Signals that some goal won't be achievable by actions of the system ever.
const ILIAS_VERSION_NUMERIC
An environment holds resources to be used in the setup process.
An objective is a desired state of the system that is supposed to be created by the setup.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...