ILIAS  release_8 Revision v8.23
ilStudyProgrammeUpdateAgent.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
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 
42  return new Setup\ObjectiveCollection(
43  'Database is updated for Module/Studyprogramme',
44  false,
45  $update_progresses,
46  $update_assignments,
47  $update_settings,
48  $update_auto_category
49  );
50  }
51 
52  public function getStatusObjective(Metrics\Storage $storage): Objective
53  {
54  return new Setup\ObjectiveCollection(
55  'Module/Studyprogramme',
56  true,
61  );
62  }
63 }
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
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85
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