ILIAS  trunk Revision v12.0_alpha-1613-gae4c99ebb18
ILIAS\BookingManager\Participant\ParticipantRepository Class Reference
+ Collaboration diagram for ILIAS\BookingManager\Participant\ParticipantRepository:

Public Member Functions

 __construct (private readonly ilDBInterface $database)
 
 delete (int $user_id, int $pool_id)
 

Detailed Description

Definition at line 26 of file ParticipantRepository.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\BookingManager\Participant\ParticipantRepository::__construct ( private readonly ilDBInterface  $database)

Definition at line 28 of file ParticipantRepository.php.

30 {
31 }

Member Function Documentation

◆ delete()

ILIAS\BookingManager\Participant\ParticipantRepository::delete ( int  $user_id,
int  $pool_id 
)

Definition at line 33 of file ParticipantRepository.php.

33 : 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 }

References ILIAS\Repository\database(), and ilDBConstants\T_INTEGER.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: