ILIAS  trunk Revision v12.0_alpha-1613-gae4c99ebb18
ParticipantRepository.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
27{
28 public function __construct(
29 private readonly ilDBInterface $database
30 ) {
31 }
32
33 public function delete(int $user_id, int $pool_id): true
34 {
35 $this->database->manipulateF(
36 "DELETE booking_reservation FROM booking_reservation
37 INNER JOIN booking_object ON booking_object.booking_object_id = booking_reservation.object_id
38 WHERE booking_reservation.user_id = %s AND booking_object.pool_id = %s",
40 [$user_id, $pool_id]
41 );
42
43 $this->database->manipulateF(
44 "DELETE FROM booking_member WHERE user_id = %s AND booking_pool_id = %s",
46 [$user_id, $pool_id]
47 );
48
49 return true;
50 }
51}
__construct(private readonly ilDBInterface $database)
Class ilDBConstants.
Interface ilDBInterface.