ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilStudyProgrammeSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
28use ILIAS\Setup\Agent\HasNoNamedObjective;
29
31{
32 use HasNoNamedObjective;
33
34 public function getUpdateObjective(?Config $config = null): Objective
35 {
36 return new ObjectiveCollection(
37 'Database is updated for component/ILIAS/StudyProgramme',
38 false,
39 // ILIAS 10
42 ),
45 ),
46 );
47 }
48
49 public function getStatusObjective(Metrics\Storage $storage): Objective
50 {
51 return new ObjectiveCollection(
52 'Database is updated for component/ILIAS/StudyProgramme',
53 true,
54 // ILIAS 10
56 $storage,
58 ),
60 $storage,
62 ),
63 );
64 }
65
66 public function hasConfig(): bool
67 {
68 return false;
69 }
70
72 {
73 throw new LogicException('Agent has no config.');
74 }
75
76 public function getInstallObjective(?Config $config = null): Objective
77 {
78 return new NullObjective();
79 }
80
81 public function getBuildObjective(): Objective
82 {
83 return new NullObjective();
84 }
85
86 public function getMigrations(): array
87 {
88 return [];
89 }
90}
An agent that just doesn't do a thing.
Definition: NullAgent.php:35
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
This class attempt to achieve a set of database update steps.
getInstallObjective(?Config $config=null)
@inheritdocs
getUpdateObjective(?Config $config=null)
@inheritdocs
getStatusObjective(Metrics\Storage $storage)
@inheritdocs
A transformation is a function from one datatype to another.
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