ILIAS  release_8 Revision v8.24
class.ilRadiusConfigRemovedObjective.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
20use ILIAS\Setup;
21
26{
27 public function getHash(): string
28 {
29 return hash("sha256", self::class);
30 }
31
32 public function getLabel(): string
33 {
34 return "Remove settings from Radius Server";
35 }
36
37 public function isNotable(): bool
38 {
39 return true;
40 }
41
42 public function getPreconditions(Setup\Environment $environment): array
43 {
44 return [
45 new \ilIniFilesPopulatedObjective(),
46 new \ilSettingsFactoryExistsObjective()
47 ];
48 }
49
50 public function achieve(Setup\Environment $environment): Setup\Environment
51 {
52 $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
54 $settings = $factory->settingsFor("common");
55 $settings->deleteLike("radius_%");
56
57 return $environment;
58 }
59
63 public function isApplicable(Setup\Environment $environment): bool
64 {
65 return true;
66 }
67}
isApplicable(Setup\Environment $environment)
@inheritDoc
getPreconditions(Setup\Environment $environment)
An environment holds resources to be used in the setup process.
Definition: Environment.php:28
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
$factory
Definition: metadata.php:75
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...