ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilLanguageSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Setup;
23use ILIAS\UI;
24
26{
27 use Setup\Agent\HasNoNamedObjective;
28
29 protected Refinery\Factory $refinery;
30 protected \ilSetupLanguage $il_setup_language;
31
32 public function __construct(
35 ) {
36 $this->refinery = $refinery;
37 $this->il_setup_language = $il_setup_language;
38 }
39
43 public function hasConfig(): bool
44 {
45 return false;
46 }
47
52 {
53 throw new LogicException(self::class . " has no Config.");
54 }
55
59 public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
60 {
62 "Complete objectives from components/ILIAS/Language",
63 false,
64 new ilLanguagesInstalledAndUpdatedObjective($this->il_setup_language),
66 );
67 }
68
72 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
73 {
75 "Complete objectives from components/ILIAS/Language",
76 false,
77 new ilLanguagesInstalledAndUpdatedObjective($this->il_setup_language),
78 );
79 }
80
85 {
87 }
88
92 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
93 {
94 return new ilLanguageMetricsCollectedObjective($storage, $this->il_setup_language);
95 }
96
100 public function getMigrations(): array
101 {
102 return [];
103 }
104}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
getStatusObjective(Setup\Metrics\Storage $storage)
__construct(Refinery\Factory $refinery, \ilSetupLanguage $il_setup_language)
getUpdateObjective(?Setup\Config $config=null)
getInstallObjective(?Setup\Config $config=null)
language handling for setup
A transformation is a function from one datatype to another.
A agent is some component that performs part of the setup process.
Definition: Agent.php:30
A configuration for the setup.
Definition: Config.php:27
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
Storage is simple key/value store without further schema definition.
Definition: Storage.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...