3 declare(strict_types=1);
    40         $this->repo = $repo_service->
participants()->invitations();
    41         $this->run_repo = $repo_service->
execution()->run();
    42         $this->set_repo = $repo_service->
settings();
    51     public function remove(
    55         $this->repo->remove($survey_id, 
$user_id);
    61         $this->repo->removeAll($survey_id);
    75         $this->repo->add($survey_id, $user_id);
    86         return $this->repo->getAllForSurvey($survey_id);
    97         $survey_ids = $this->repo->getAllForUser($user_id);
   100         $finished_surveys = $this->run_repo->getFinishedSurveysOfUser($user_id);
   102         $open_surveys = array_filter($survey_ids, 
static function (
int $i) use ($finished_surveys) {
   103             return !in_array($i, $finished_surveys, 
true);
   107         $has_ended = $this->set_repo->hasEnded($open_surveys);
   108         $open_surveys = array_filter($open_surveys, 
static function (
int $i) use ($has_ended): 
bool {
   109             return !($has_ended[$i] ?? 
false);
   112         return $open_surveys;
 add(int $survey_id, int $user_id)
Add invitation. 
 
getAllForSurvey(int $survey_id)
Get invitations for survey. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Survey invitations repository. 
 
Execution RunDBRepository $run_repo
 
getOpenInvitationsOfUser(int $user_id)
Get all open invitations of a user. 
 
removeAll(int $survey_id)
 
Survey internal data service. 
 
Settings SettingsDBRepository $set_repo
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
InvitationsDBRepository $repo
 
__construct(InternalRepoService $repo_service)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...