ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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 27 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 43 of file class.ParticipantsManager.php.

References ilObject\_exists().

46  : void {
47  if (!\ilObjUser::_exists($user_id)) {
48  throw new \ilException("User $user_id does not exist.");
49  }
50  if (!\ilObjBookingPool::_exists($pool_id)) {
51  throw new \ilException("Booking Pool $pool_id does not exist.");
52  }
53 
54  $participant = new \ilBookingParticipant($user_id, $pool_id);
55  }
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
+ Here is the call graph for this function:

◆ removeFromAll()

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

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

57  : void
58  {
59  $this->repo->participants()->removeFromAll($user_id);
60  }

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: