Survey invitations.
More...
◆ __construct()
◆ add()
| ILIAS\Survey\Participants\InvitationsManager::add |
( |
int |
$survey_id, |
|
|
int |
$user_id |
|
) |
| |
◆ getAllForSurvey()
| ILIAS\Survey\Participants\InvitationsManager::getAllForSurvey |
( |
int |
$survey_id | ) |
|
Get invitations for survey.
- Parameters
-
| int | $survey_id | Survey ID not object ID! |
- Returns
- int[]
Definition at line 83 of file class.InvitationsManager.php.
86 return $this->repo->getAllForSurvey($survey_id);
◆ getOpenInvitationsOfUser()
| ILIAS\Survey\Participants\InvitationsManager::getOpenInvitationsOfUser |
( |
int |
$user_id | ) |
|
Get all open invitations of a user.
- Returns
- int[] survey ids
Definition at line 93 of file class.InvitationsManager.php.
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;
◆ remove()
| ILIAS\Survey\Participants\InvitationsManager::remove |
( |
int |
$survey_id, |
|
|
int |
$user_id |
|
) |
| |
Remove invitation.
- Parameters
-
| int | $survey_id | Survey ID not object ID! |
| int | $user_id | |
Definition at line 51 of file class.InvitationsManager.php.
55 $this->repo->remove($survey_id, $user_id);
◆ removeAll()
| ILIAS\Survey\Participants\InvitationsManager::removeAll |
( |
int |
$survey_id | ) |
|
◆ $repo
◆ $run_repo
| Execution RunDBRepository ILIAS\Survey\Participants\InvitationsManager::$run_repo |
|
protected |
◆ $set_repo
The documentation for this class was generated from the following file: