36 $this->survey_service = $DIC->survey()->internal();
38 $this->
lng = $DIC->language();
39 $this->
ctrl = $DIC->ctrl();
40 $lng = $DIC->language();
41 $ilCtrl = $DIC->ctrl();
42 $this->invitation_manager = $this
58 $this->
setRowTemplate(
"tpl.il_svy_svy_participants_row.html",
"Modules/Survey/Participants");
59 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
72 if ($user[
"finished"]) {
73 $status =
$lng->
txt(
"survey_results_finished");
75 $status =
$lng->
txt(
"survey_results_started");
78 $data[$user[
"login"]] = array(
79 "name" => $user[
"sortname"],
80 "login" => $user[
"login"],
85 foreach ($this->invitation_manager->getAllForSurvey($a_svy->
getSurveyId()) as $user_id) {
88 !array_key_exists($user[
"login"],
$data)) {
89 $data[$user[
"login"]] = array(
90 "name" => $user[
"lastname"] .
", " . $user[
"firstname"],
91 "login" => $user[
"login"],
92 "status" =>
$lng->
txt(
"survey_results_not_started")
100 protected function fillRow(array $a_set): void
102 $this->tpl->setVariable(
"NAME", $a_set[
"name"]);
103 $this->tpl->setVariable(
"LOGIN", $a_set[
"login"]);
104 $this->tpl->setVariable(
"STATUS", $a_set[
"status"]);
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
static _lookupName(int $a_user_id)
lookup user name
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getSurveyParticipants(?array $finished_ids=null, bool $force_non_anonymous=false, bool $include_invites=false)
Participants InvitationsManager $invitation_manager
setDefaultOrderField(string $a_defaultorderfield)
ILIAS Survey InternalService $survey_service
__construct(object $a_parent_obj, string $a_parent_cmd, ilObjSurvey $a_svy)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
getItems(ilObjSurvey $a_svy)
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)