◆ achieve()
ilIniFilesLoadedObjective::achieve |
( |
Setup\Environment |
$environment | ) |
|
Definition at line 55 of file class.ilIniFilesLoadedObjective.php.
References $client_id, $ini, and getClientDir().
57 $client_id = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_ID);
59 throw new Setup\UnachievableException(
60 "To initialize the ini-files, we need a client id, but it does not " .
61 "exist in the environment." 65 if ($environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI) == null) {
66 $path = dirname(__DIR__, 2) .
"/ilias.ini.php";
69 $environment = $environment
70 ->withResource(Setup\Environment::RESOURCE_ILIAS_INI,
$ini);
73 if ($environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI) == null) {
77 $environment = $environment
78 ->withResource(Setup\Environment::RESOURCE_CLIENT_INI, $client_ini);
◆ getClientDir()
ilIniFilesLoadedObjective::getClientDir |
( |
|
$client_id | ) |
|
|
protected |
◆ getHash()
ilIniFilesLoadedObjective::getHash |
( |
| ) |
|
◆ getLabel()
ilIniFilesLoadedObjective::getLabel |
( |
| ) |
|
◆ getPreconditions()
ilIniFilesLoadedObjective::getPreconditions |
( |
Setup\Environment |
$environment | ) |
|
Definition at line 41 of file class.ilIniFilesLoadedObjective.php.
43 if (self::$might_populate_ini_files_as_well) {
45 new Setup\Objective\ClientIdReadObjective(),
50 new Setup\Objective\ClientIdReadObjective(),
◆ isApplicable()
ilIniFilesLoadedObjective::isApplicable |
( |
Setup\Environment |
$environment | ) |
|
Definition at line 87 of file class.ilIniFilesLoadedObjective.php.
References $ini.
89 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
90 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
92 return is_null(
$ini) || is_null($client_ini);
◆ isNotable()
ilIniFilesLoadedObjective::isNotable |
( |
| ) |
|
◆ $might_populate_ini_files_as_well
ilIniFilesLoadedObjective::$might_populate_ini_files_as_well = true |
|
static |
The documentation for this class was generated from the following file: