19 declare(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],
89 "user_id" => [
"integer", $user_id]
107 "SELECT user_id FROM svy_invitation " .
108 " WHERE survey_id = %s ",
113 while ($rec = $db->fetchAssoc($set)) {
114 $items[] = (
int) $rec[
"user_id"];
130 "SELECT survey_id FROM svy_invitation " .
131 " WHERE user_id = %s ",
136 while ($rec = $db->fetchAssoc($set)) {
137 $items[] = (
int) $rec[
"survey_id"];
manipulateF(string $query, array $types, array $values)
getAllForUser(int $user_id)
Get surveys where user is invited.
add(int $survey_id, int $user_id)
Add invitation.
Survey invitations repository.
InternalDataService $data
queryF(string $query, array $types, array $values)
__construct(InternalDataService $data, \ilDBInterface $db)
replace(string $table, array $primary_keys, array $other_columns)
Replace into method.
getAllForSurvey(int $survey_id)
Get invitations for survey.
Survey internal data service.
removeAll(int $survey_id)