19declare(strict_types=1);
32 protected \ilDBInterface
$db;
50 public function remove(
int $survey_id,
int $user_id):
void
55 "DELETE FROM svy_invitation WHERE " .
56 " survey_id = %s AND user_id = %s",
57 [
"integer",
"integer"],
67 "DELETE FROM svy_invitation WHERE " .
88 "survey_id" => [
"integer", $survey_id],
107 "SELECT user_id FROM svy_invitation " .
108 " WHERE survey_id = %s ",
114 $items[] = (
int) $rec[
"user_id"];
130 "SELECT survey_id FROM svy_invitation " .
131 " WHERE user_id = %s ",
137 $items[] = (
int) $rec[
"survey_id"];
Survey internal data service.
Survey invitations repository.
getAllForSurvey(int $survey_id)
Get invitations for survey.
add(int $survey_id, int $user_id)
Add invitation.
getAllForUser(int $user_id)
Get surveys where user is invited.
removeAll(int $survey_id)
InternalDataService $data
__construct(InternalDataService $data, \ilDBInterface $db)
replace(string $table, array $primary_keys, array $other_columns)
Replace into method.
manipulateF(string $query, array $types, array $values)
fetchAssoc(ilDBStatement $statement)
queryF(string $query, array $types, array $values)