3 declare(strict_types=1);
48 throw new \ilException(
"User $user_id does not exist.");
51 throw new \ilException(
"Booking Pool $pool_id does not exist.");
54 $participant = new \ilBookingParticipant($user_id, $pool_id);
59 $this->repo->participants()->removeFromAll($user_id);
removeFromAll(int $user_id)
__construct(InternalDataService $data, InternalRepoService $repo, InternalDomainService $domain)
InternalRepoService $repo
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
InternalDataService $data
Repository internal repo service.
Repository internal data service.
InternalDomainService $domain
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
createIfNotExisting(int $user_id, int $pool_id)