19 declare(strict_types=1);
51 throw new \ilException(
"User $user_id does not exist.");
54 throw new \ilException(
"Booking Pool $pool_id does not exist.");
57 $participant = new \ilBookingParticipant($user_id, $pool_id);
62 $this->repo->participants()->removeFromAll($user_id);
InternalDomainService $domain
__construct(InternalDataService $data, InternalRepoService $repo, InternalDomainService $domain)
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
InternalDataService $data
Survey internal data service.
InternalRepoService $repo
createIfNotExisting(int $user_id, int $pool_id)
removeFromAll(int $user_id)
Survey internal data service.