ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.Agent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\Setup;
24
29{
30 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
31 {
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}
getUpdateObjective(?Setup\Config $config=null)
Definition: class.Agent.php:30
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 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...
$objectives