ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.InternalRepoService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\BookingManager;
22 
29 
35 {
37  protected \ilDBInterface $db;
38 
39  public function __construct(InternalDataService $data, \ilDBInterface $db)
40  {
41  $this->data = $data;
42  $this->db = $db;
43  }
44 
45  /*
46  public function ...() : ...\RepoService
47  {
48  return new ...\RepoService(
49  $this->data,
50  $this->db
51  );
52  }*/
53 
55  {
56  return new \ilBookingPreferencesDBRepository(
57  $this->data,
58  $this->db
59  );
60  }
61 
63  {
64  return new \ilBookingPrefBasedBookGatewayRepository(
65  $this->db
66  );
67  }
68 
70  {
72  }
73 
74  public function objects(): ObjectsDBRepository
75  {
76  return new ObjectsDBRepository(
77  $this->db
78  );
79  }
80 
81  public function schedules(): SchedulesDBRepository
82  {
83  return new SchedulesDBRepository(
84  $this->db
85  );
86  }
87 
89  {
90  return new ReservationDBRepository($this->db);
91  }
92 
98  array $context_obj_ids
100  return new ReservationDBRepository($this->db, $context_obj_ids);
101  }
102 
104  {
105  return new SelectedObjectsDBRepository($this->db);
106  }
107 
109  {
110  return new ParticipantsRepository($this->db);
111  }
112 
113 }
Repo class for reservations Acts on tables booking_reservation (rw), booking_reservation_group (rw) a...
__construct(InternalDataService $data, \ilDBInterface $db)
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...
reservationWithContextObjCache(array $context_obj_ids)
Get repo with reservation information preloaded for context obj ids.