Store information about the installation, like title, description and contact information in the according fields in the ini or database.
More...
Store information about the installation, like title, description and contact information in the according fields in the ini or database.
Definition at line 25 of file class.ilInstallationInformationStoredObjective.php.
◆ __construct()
◆ achieve()
ilInstallationInformationStoredObjective::achieve |
( |
Setup\Environment |
$environment | ) |
|
Definition at line 61 of file class.ilInstallationInformationStoredObjective.php.
References $ini, and ILIAS\Setup\Environment\getResource().
63 $factory = $environment->getResource(
Setup\Environment::RESOURCE_SETTINGS_FACTORY);
64 $common_config = $environment->getConfigFor(
"common");
66 $settings = $factory->settingsFor(
"common");
67 $ini = $environment->getResource(
Setup\Environment::RESOURCE_CLIENT_INI);
69 $settings->set(
"inst_name", (
string) $this->config->getClientName());
70 $ini->setVariable(
"client",
"name", $this->config->getClientName() ?? (string) $common_config->getClientId());
71 $ini->setVariable(
"client",
"description", (
string) $this->config->getClientDescription());
72 $settings->set(
"inst_institution", (
string) $this->config->getClientInstitution());
73 $settings->set(
"admin_firstname", (
string) $this->config->getContactFirstname());
74 $settings->set(
"admin_lastname", (
string) $this->config->getContactLastname());
75 $settings->set(
"admin_title", (
string) $this->config->getContactTitle());
76 $settings->set(
"admin_position", (
string) $this->config->getContactPosition());
77 $settings->set(
"admin_institution", (
string) $this->config->getContactInstitution());
78 $settings->set(
"admin_street", (
string) $this->config->getContactStreet());
79 $settings->set(
"admin_zipcode", (
string) $this->config->getContactZipcode());
80 $settings->set(
"admin_city", (
string) $this->config->getContactCity());
81 $settings->set(
"admin_country", (
string) $this->config->getContactCountry());
82 $settings->set(
"admin_phone", (
string) $this->config->getContactPhone());
83 $settings->set(
"admin_email", (
string) $this->config->getContactEMail());
86 throw new Setup\UnachievableException(
"Could not write client.ini.php");
◆ getHash()
ilInstallationInformationStoredObjective::getHash |
( |
| ) |
|
◆ getLabel()
ilInstallationInformationStoredObjective::getLabel |
( |
| ) |
|
◆ getPreconditions()
ilInstallationInformationStoredObjective::getPreconditions |
( |
Setup\Environment |
$environment | ) |
|
◆ isApplicable()
ilInstallationInformationStoredObjective::isApplicable |
( |
Setup\Environment |
$environment | ) |
|
Definition at line 95 of file class.ilInstallationInformationStoredObjective.php.
References $ini.
97 $factory = $environment->getResource(
Setup\Environment::RESOURCE_SETTINGS_FACTORY);
98 $common_config = $environment->getConfigFor(
"common");
100 $settings = $factory->settingsFor(
"common");
101 $ini = $environment->getResource(
Setup\Environment::RESOURCE_CLIENT_INI);
103 $client_name = $this->config->getClientName() ?? (string) $common_config->getClientId();
106 $settings->get(
"inst_name") !== $this->config->getClientName() ||
107 $ini->readVariable(
"client",
"name") !== $client_name ||
108 $ini->readVariable(
"client",
"description") !== $this->config->getClientDescription() ||
109 $settings->get(
"inst_institution") !== $this->config->getClientInstitution() ||
110 $settings->get(
"admin_firstname") !== $this->config->getContactFirstname() ||
111 $settings->get(
"admin_lastname") !== $this->config->getContactLastname() ||
112 $settings->get(
"admin_title") !== $this->config->getContactTitle() ||
113 $settings->get(
"admin_position") !== $this->config->getContactPosition() ||
114 $settings->get(
"admin_institution") !== $this->config->getContactInstitution() ||
115 $settings->get(
"admin_street") !== $this->config->getContactStreet() ||
116 $settings->get(
"admin_zipcode") !== $this->config->getContactZipcode() ||
117 $settings->get(
"admin_city") !== $this->config->getContactCity() ||
118 $settings->get(
"admin_country") !== $this->config->getContactCountry() ||
119 $settings->get(
"admin_phone") !== $this->config->getContactPhone() ||
120 $settings->get(
"admin_email") !== $this->config->getContactEMail()
◆ isNotable()
ilInstallationInformationStoredObjective::isNotable |
( |
| ) |
|
◆ $config
ilInstallationInformationStoredObjective::$config |
|
protected |
The documentation for this class was generated from the following file: