ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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}
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...
getInstallObjective(?Config $config=null)
@inheritdocs
getStatusObjective(Metrics\Storage $storage)
@inheritdocs
getUpdateObjective(?Config $config=null)
@inheritdocs
This class attempt to achieve a set of database update steps.
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...