ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.Agent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\Setup;
24 
28 class Agent extends Setup\Agent\NullAgent
29 {
30  public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
31  {
32  return new Setup\ObjectiveCollection(
33  "Updates of Modules/BookingManager",
34  false,
35  ...$this->getObjectives()
36  );
37  }
38 
39  protected function getObjectives(): array
40  {
41  $objectives = [];
42 
43  $objectives[] = new \ilAccessCustomRBACOperationAddedObjective(
44  "manage_own_reservations",
45  "Manage Own Reservations",
46  "object",
47  3110,
48  ["book"]
49  );
50 
51  $objectives[] = new \ilAccessCustomRBACOperationAddedObjective(
52  "manage_all_reservations",
53  "Manage All Reservations",
54  "object",
55  3850,
56  ["book"]
57  );
58 
60  "book",
61  "read",
62  "manage_own_reservations"
63  );
64 
66  "book",
67  "write",
68  "manage_all_reservations"
69  );
70 
71  // db update steps
72  $objectives[] = new \ilDatabaseUpdateStepsExecutedObjective(new ilBookingManagerDBUpdateSteps());
73 
74  $objectives[] = new \ilDatabaseUpdateStepsExecutedObjective(new ilBookingManager8HotfixDBUpdateSteps());
75 
76  return $objectives;
77  }
78 
79  public function getMigrations(): array
80  {
81  return [
82  new \ilBookingManagerObjectInfoMigration(),
83  new \ilBookingManagerBookingInfoMigration()
84  ];
85  }
86 
87 }
A objective collection is a objective that is achieved once all subobjectives are achieved...
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getUpdateObjective(?Setup\Config $config=null)
Definition: class.Agent.php:30
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$objectives
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A configuration for the setup.
Definition: Config.php:26