26         return hash(
"sha256", self::class);
    31         return "Store information about installation and contact in the settings";
    42             new \ilIniFilesLoadedObjective(),
    43             new \ilSettingsFactoryExistsObjective()
    49         $factory = $environment->
getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
    50         $common_config = $environment->getConfigFor(
"common");
    52         $settings = $factory->settingsFor(
"common");
    53         $ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
    55         $settings->set(
"inst_name", (
string) $this->config->getClientName());
    56         $ini->setVariable(
"client", 
"name", $this->config->getClientName() ?? (string) $common_config->getClientId());
    57         $ini->setVariable(
"client", 
"description", (
string) $this->config->getClientDescription());
    58         $settings->set(
"inst_institution", (
string) $this->config->getClientInstitution());
    59         $settings->set(
"admin_firstname", (
string) $this->config->getContactFirstname());
    60         $settings->set(
"admin_lastname", (
string) $this->config->getContactLastname());
    61         $settings->set(
"admin_title", (
string) $this->config->getContactTitle());
    62         $settings->set(
"admin_position", (
string) $this->config->getContactPosition());
    63         $settings->set(
"admin_institution", (
string) $this->config->getContactInstitution());
    64         $settings->set(
"admin_street", (
string) $this->config->getContactStreet());
    65         $settings->set(
"admin_zipcode", (
string) $this->config->getContactZipcode());
    66         $settings->set(
"admin_city", (
string) $this->config->getContactCity());
    67         $settings->set(
"admin_country", (
string) $this->config->getContactCountry());
    68         $settings->set(
"admin_phone", (
string) $this->config->getContactPhone());
    69         $settings->set(
"admin_email", (
string) $this->config->getContactEMail());
    72             throw new Setup\UnachievableException(
"Could not write client.ini.php");
    83         $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
    84         $common_config = $environment->getConfigFor(
"common");
    86         $settings = $factory->settingsFor(
"common");
    87         $ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
    89         $client_name = $this->config->getClientName() ?? (string) $common_config->getClientId();
    92             $settings->get(
"inst_name") !== $this->config->getClientName() ||
    93             $ini->readVariable(
"client", 
"name") !== $client_name ||
    94             $ini->readVariable(
"client", 
"description") !== $this->config->getClientDescription() ||
    95             $settings->get(
"inst_institution") !== $this->config->getClientInstitution() ||
    96             $settings->get(
"admin_firstname") !== $this->config->getContactFirstname() ||
    97             $settings->get(
"admin_lastname") !== $this->config->getContactLastname() ||
    98             $settings->get(
"admin_title") !== $this->config->getContactTitle() ||
    99             $settings->get(
"admin_position") !== $this->config->getContactPosition() ||
   100             $settings->get(
"admin_institution") !== $this->config->getContactInstitution() ||
   101             $settings->get(
"admin_street") !== $this->config->getContactStreet() ||
   102             $settings->get(
"admin_zipcode") !== $this->config->getContactZipcode() ||
   103             $settings->get(
"admin_city") !== $this->config->getContactCity() ||
   104             $settings->get(
"admin_country") !== $this->config->getContactCountry() ||
   105             $settings->get(
"admin_phone") !== $this->config->getContactPhone() ||
   106             $settings->get(
"admin_email") !== $this->config->getContactEMail()
 
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g. 
 
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.