ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ILIAS\Survey\Participants\ParticipantsManager Class Reference
+ Collaboration diagram for ILIAS\Survey\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()

ILIAS\Survey\Participants\ParticipantsManager::__construct ( InternalDataService  $data,
InternalRepoService  $repo,
InternalDomainService  $domain 
)

Member Function Documentation

◆ createIfNotExisting()

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

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

References ilObject\_exists().

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
+ Here is the call graph for this function:

◆ removeFromAll()

ILIAS\Survey\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  }

Field Documentation

◆ $data

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

◆ $domain

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

◆ $repo

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

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