ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\BookingManager\Participants\ParticipantsManager Class Reference
+ Collaboration diagram for ILIAS\BookingManager\Participants\ParticipantsManager:

Public Member Functions

 __construct (InternalDataService $data, InternalRepoService $repo, InternalDomainService $domain)
 
 createIfNotExisting (int $user_id, int $pool_id)
 
 removeFromAll (int $user_id)
 

Protected Attributes

InternalDataService $data
 
InternalRepoService $repo
 
InternalDomainService $domain
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 30 of file class.ParticipantsManager.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ createIfNotExisting()

ILIAS\BookingManager\Participants\ParticipantsManager::createIfNotExisting ( int  $user_id,
int  $pool_id 
)

Definition at line 46 of file class.ParticipantsManager.php.

49 : void {
51 throw new \ilException("User $user_id does not exist.");
52 }
53 if (!\ilObjBookingPool::_exists($pool_id)) {
54 throw new \ilException("Booking Pool $pool_id does not exist.");
55 }
56
57 $participant = new \ilBookingParticipant($user_id, $pool_id);
58 }
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data

◆ removeFromAll()

ILIAS\BookingManager\Participants\ParticipantsManager::removeFromAll ( int  $user_id)

Definition at line 60 of file class.ParticipantsManager.php.

60 : void
61 {
62 $this->repo->participants()->removeFromAll($user_id);
63 }

References $user_id.

Field Documentation

◆ $data

InternalDataService ILIAS\BookingManager\Participants\ParticipantsManager::$data
protected

◆ $domain

InternalDomainService ILIAS\BookingManager\Participants\ParticipantsManager::$domain
protected

◆ $repo

InternalRepoService ILIAS\BookingManager\Participants\ParticipantsManager::$repo
protected

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