ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilStudyProgrammeUpdateAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 use ILIAS\Setup;
24 
25 class ilStudyProgrammeUpdateAgent extends Setup\Agent\NullAgent
26 {
27  public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
28  {
29  $update_progresses = new ilDatabaseUpdateStepsExecutedObjective(
31  );
32  $update_assignments = new ilDatabaseUpdateStepsExecutedObjective(
34  );
35  $update_settings = new ilDatabaseUpdateStepsExecutedObjective(
37  );
38  $update_auto_category = new ilDatabaseUpdateStepsExecutedObjective(
40  );
41  $enable_pc_statusinfo = new ilDatabaseUpdateStepsExecutedObjective(
43  );
44  $udf_definitions = new ilDatabaseUpdateStepsExecutedObjective(
46  );
47 
48  return new Setup\ObjectiveCollection(
49  'Database is updated for Module/Studyprogramme',
50  false,
51  $update_progresses,
52  $update_assignments,
53  $update_settings,
54  $update_auto_category,
55  $enable_pc_statusinfo,
56  $udf_definitions
57  );
58  }
59 
60  public function getStatusObjective(Metrics\Storage $storage): Objective
61  {
62  return new Setup\ObjectiveCollection(
63  'Module/Studyprogramme',
64  true,
71  );
72  }
73 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
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...
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...
getUpdateObjective(Setup\Config $config=null)
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...
getStatusObjective(Metrics\Storage $storage)
A configuration for the setup.
Definition: Config.php:26