ILIAS  release_8 Revision v8.24
class.ilLanguageSetupAgent.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22use ILIAS\Setup;
24use ILIAS\UI;
25
27{
28 use Setup\Agent\HasNoNamedObjective;
29
30 protected Refinery\Factory $refinery;
31 protected \ilSetupLanguage $il_setup_language;
32
33 public function __construct(
34 Refinery\Factory $refinery,
35 $_, // this is Data\Factory, but we do not need it...
37 ) {
38 $this->refinery = $refinery;
39 $this->il_setup_language = $il_setup_language;
40 }
41
45 public function hasConfig(): bool
46 {
47 return false;
48 }
49
54 {
55 throw new LogicException(self::class . " has no Config.");
56 }
57
61 public function getInstallObjective(Setup\Config $config = null): Setup\Objective
62 {
64 "Complete objectives from Services/Language",
65 false,
66 new ilLanguagesInstalledAndUpdatedObjective($this->il_setup_language),
68 );
69 }
70
74 public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
75 {
77 "Complete objectives from Services/Language",
78 false,
79 new ilLanguagesInstalledAndUpdatedObjective($this->il_setup_language),
80 );
81 }
82
86 public function getBuildArtifactObjective(): Setup\Objective
87 {
89 }
90
94 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
95 {
96 return new ilLanguageMetricsCollectedObjective($storage, $this->il_setup_language);
97 }
98
102 public function getMigrations(): array
103 {
104 return [];
105 }
106}
Builds data types.
Definition: Factory.php:21
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
__construct(Refinery\Factory $refinery, $_, \ilSetupLanguage $il_setup_language)
getStatusObjective(Setup\Metrics\Storage $storage)
getInstallObjective(Setup\Config $config=null)
getUpdateObjective(Setup\Config $config=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: ByTrying.php:21
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...