22 $this->lng =
$DIC->language();
23 $this->ctrl =
$DIC->ctrl();
25 $ilCtrl =
$DIC->ctrl();
30 $this->
setTitle(
$lng->txt(
"svy_anonymous_participants_svy"));
32 $this->
addColumn($this->lng->txt(
"name"),
"name");
33 $this->
addColumn($this->lng->txt(
"login"),
"login");
35 $this->
addColumn($this->lng->txt(
"status"),
"status");
37 $this->
setRowTemplate(
"tpl.il_svy_svy_participants_row.html",
"Modules/Survey/Participants");
38 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
51 if ($user[
"finished"]) {
52 $status =
$lng->txt(
"survey_results_finished");
54 $status =
$lng->txt(
"survey_results_started");
57 $data[$user[
"login"]] = array(
58 "name" => $user[
"sortname"],
59 "login" => $user[
"login"],
64 foreach ($this->invitation_manager->getAllForSurvey($a_svy->
getSurveyId()) as $user_id) {
67 !array_key_exists($user[
"login"],
$data)) {
68 $data[$user[
"login"]] = array(
69 "name" => $user[
"lastname"] .
", " . $user[
"firstname"],
70 "login" => $user[
"login"],
71 "status" =>
$lng->txt(
"survey_results_not_started")
81 $this->tpl->setVariable(
"NAME", $a_set[
"name"]);
82 $this->tpl->setVariable(
"LOGIN", $a_set[
"login"]);
83 $this->tpl->setVariable(
"STATUS", $a_set[
"status"]);
An exception for terminatinating execution or to throw for unit testing.
& getSurveyParticipants($finished_ids=null, $force_non_anonymous=false, $include_invites=false)
getSurveyId()
Returns the survey database id.
static _lookupName($a_user_id)
lookup user name
fillRow($a_set)
Standard Version of Fill Row.
getItems(ilObjSurvey $a_svy)
__construct($a_parent_obj, $a_parent_cmd, ilObjSurvey $a_svy)
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc