ILIAS  trunk Revision v12.0_alpha-1613-gae4c99ebb18
BookingTableActionsFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
34use ILIAS\UI\Factory as UIFactory;
35use ILIAS\UI\Renderer as UIRenderer;
36use ilLanguage;
38
40{
41 public const string ACTION_CANCEL = 'cancel';
42
43 public const string ACTION_DELETE = 'delete';
44
45 public const string ACTION_MAIL = 'mail';
46
47 public function __construct(
48 protected readonly ilCtrlInterface $ctrl,
49 protected readonly ilLanguage $lng,
50 protected readonly ilGlobalTemplateInterface $tpl,
51 protected readonly UIFactory $ui_factory,
52 protected readonly UIRenderer $ui_renderer,
53 protected readonly Refinery $refinery,
54 protected readonly HttpService $http,
55 protected readonly AccessManager $access,
56 protected readonly ReservationDBRepository $reservation_repository,
57 protected readonly ilObjBookingPool $booking_pool,
58 protected readonly array $bookings,
59 ) {
60 }
61
62 public function getTableActions(): TableActions
63 {
64 return new TableActions(
65 $this->ctrl,
66 $this->lng,
67 $this->tpl,
68 $this->ui_factory,
69 $this->ui_renderer,
70 $this->refinery,
71 $this->http,
72 [
73 self::ACTION_CANCEL => $this->getCancelAction(),
74 self::ACTION_DELETE => $this->getDeleteAction(),
75 self::ACTION_MAIL => $this->getMailAction(),
76 ]
77 );
78 }
79
81 {
83 $this->access,
84 $this->ui_factory,
85 $this->ui_renderer,
86 $this->lng,
87 $this->reservation_repository,
88 $this->http,
89 $this->tpl,
90 $this->ctrl,
91 $this->booking_pool,
92 $this->bookings
93 );
94 }
95
97 {
99 $this->access,
100 $this->ui_factory,
101 $this->ui_renderer,
102 $this->lng,
103 $this->reservation_repository,
104 $this->http,
105 $this->tpl,
106 $this->ctrl,
107 $this->booking_pool,
108 $this->bookings
109 );
110 }
111
113 {
114 return new BookingsTableMailAction(
115 $this->access,
116 $this->ui_factory,
117 $this->ui_renderer,
118 $this->lng,
119 $this->reservation_repository,
120 $this->http,
121 $this->tpl,
122 $this->ctrl,
123 $this->booking_pool,
124 $this->bookings
125 );
126 }
127}
__construct(protected readonly ilCtrlInterface $ctrl, protected readonly ilLanguage $lng, protected readonly ilGlobalTemplateInterface $tpl, protected readonly UIFactory $ui_factory, protected readonly UIRenderer $ui_renderer, protected readonly Refinery $refinery, protected readonly HttpService $http, protected readonly AccessManager $access, protected readonly ReservationDBRepository $reservation_repository, protected readonly ilObjBookingPool $booking_pool, protected readonly array $bookings,)
Repo class for reservations Acts on tables booking_reservation (rw), booking_reservation_group (rw) a...
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
Builds data types.
Definition: Factory.php:36
language handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An entity that renders components to a string output.
Definition: Renderer.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static http()
Fetches the global http state from ILIAS.
global $lng
Definition: privfeed.php:26