3 declare(strict_types=1);
    27         return hash(
"sha256", self::class);
    32         return "The installation is accessible.";
    42         $db_config = $environment->getConfigFor(
"database");
    44             new \ilIniFilesPopulatedObjective(),
    46             new \ilSettingsFactoryExistsObjective()
    52         $factory = $environment->
getResource(
Setup\Environment::RESOURCE_SETTINGS_FACTORY);
    53         $settings = $factory->settingsFor(
"common");
    55         $settings->set(
"setup_ok", 
"1");
    57         $client_ini = $environment->getResource(
Setup\Environment::RESOURCE_CLIENT_INI);
    59         $client_ini->setVariable(
"client", 
"access", 
'1');
    61         if (!$client_ini->write()) {
    62             throw new Setup\UnachievableException(
"Could not write client.ini.php");
    73         $factory = $environment->getResource(
Setup\Environment::RESOURCE_SETTINGS_FACTORY);
    74         $settings = $factory->settingsFor(
"common");
    75         $client_ini = $environment->getResource(
Setup\Environment::RESOURCE_CLIENT_INI);
    78             $settings->get(
"setup_ok") != 1 ||
    79             $client_ini->readVariable(
"client", 
"access") != true
 
achieve(Setup\Environment $environment)
 
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g. 
 
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. 
 
isApplicable(Setup\Environment $environment)