ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ilCourseObjectiveSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Setup;
28
30{
31 use Setup\Agent\HasNoNamedObjective;
32
33 public function getUpdateObjective(?Config $config = null): Objective
34 {
35 return new ObjectiveCollection(
36 'Database is updated for component/ILIAS/Course',
37 false,
39 );
40 }
41
42 public function getStatusObjective(Metrics\Storage $storage): Objective
43 {
44 return new ObjectiveCollection(
45 'Database is updated for component/ILIAS/Course',
46 true,
48 );
49 }
50
52 {
53 throw new LogicException('Agent has no config.');
54 }
55
56 public function getInstallObjective(?Config $config = null): Objective
57 {
58 return new Objective\NullObjective();
59 }
60
61 public function getBuildObjective(): Objective
62 {
63 return new Objective\NullObjective();
64 }
65
66 public function getMigrations(): array
67 {
68 return [
70 ];
71 }
72
73 public function hasConfig(): bool
74 {
75 return false;
76 }
77}
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
getInstallObjective(?Config $config=null)
Get the goals the agent wants to achieve on setup.
getStatusObjective(Metrics\Storage $storage)
getUpdateObjective(?Config $config=null)
Get the goal the agent wants to achieve on update.
getMigrations()
Get a named map of migrations available for this Agent.
hasConfig()
Does this agent require a configuration?
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
This class attempt to achieve a set of database update steps.
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...