ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ilCourseObjectiveSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 use ILIAS\Setup;
28 
30 {
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 }
A objective collection is a objective that is achieved once all subobjectives are achieved...
An agent that just doesn&#39;t do a thing.
Definition: NullAgent.php:34
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getStatusObjective(Metrics\Storage $storage)
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 configuration for the setup.
Definition: Config.php:26