26 return hash(
"sha256", self::class);
31 return "Store information about installation and contact in the settings";
41 $common_config = $environment->getConfigFor(
"common");
43 new \ilIniFilesPopulatedObjective($common_config),
44 new \ilSettingsFactoryExistsObjective()
50 $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
51 $common_config = $environment->getConfigFor(
"common");
53 $settings =
$factory->settingsFor(
"common");
54 $ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
56 $settings->set(
"inst_name", $this->config->getClientName());
57 $ini->setVariable(
"client",
"name", $this->config->getClientName() ?? $common_config->getClientId());
58 $ini->setVariable(
"client",
"description", $this->config->getClientDescription());
59 $settings->set(
"inst_institution", $this->config->getClientInstitution());
60 $settings->set(
"admin_firstname", $this->config->getContactFirstname());
61 $settings->set(
"admin_lastname", $this->config->getContactLastname());
62 $settings->set(
"admin_title", $this->config->getContactTitle());
63 $settings->set(
"admin_position", $this->config->getContactPosition());
64 $settings->set(
"admin_institution", $this->config->getContactInstitution());
65 $settings->set(
"admin_street", $this->config->getContactStreet());
66 $settings->set(
"admin_zipcode", $this->config->getContactZipcode());
67 $settings->set(
"admin_city", $this->config->getContactCity());
68 $settings->set(
"admin_country", $this->config->getContactCountry());
69 $settings->set(
"admin_phone", $this->config->getContactPhone());
70 $settings->set(
"admin_email", $this->config->getContactEMail());
73 throw new Setup\UnachievableException(
"Could not write client.ini.php");
An environment holds resources to be used in the setup process.