24 $this->
setId(
"svy_usr");
27 $lng = $DIC->language();
28 $ilCtrl = $DIC->ctrl();
32 $this->ctrl = $ilCtrl;
36 $this->
setStyle(
'table',
'fullwidth');
38 $this->
addColumn($this->lng->txt(
"username"),
'username',
'');
39 $this->
addColumn($this->lng->txt(
"question"),
'',
'');
40 $this->
addColumn($this->lng->txt(
"results"),
'',
'');
41 $this->
addColumn($this->lng->txt(
"workingtime"),
'workingtime',
'');
42 $this->
addColumn($this->lng->txt(
"survey_results_finished"),
'finished',
'');
44 $this->
setRowTemplate(
"tpl.il_svy_svy_results_user_row.html",
"Modules/Survey");
46 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
58 if (is_null($timeinseconds)) {
60 } elseif ($timeinseconds == 0) {
61 return $this->lng->txt(
'not_available');
63 return sprintf(
"%02d:%02d:%02d", ($timeinseconds / 3600), ($timeinseconds / 60) % 60, $timeinseconds % 60);
76 $this->tpl->setVariable(
"USERNAME",
$data[
'username']);
77 $this->tpl->setVariable(
"QUESTION",
$data[
'question']);
79 return htmlentities(
$i);
81 $this->tpl->setVariable(
"RESULTS",
$results 84 $this->tpl->setVariable(
"WORKINGTIME", $this->
formatTime(
$data[
'workingtime']));
86 if (
$data[
"finished"] !== null) {
87 if (
$data[
"finished"] !==
false) {
92 $this->tpl->setVariable(
"FINISHED", $finished);
94 $this->tpl->setVariable(
"FINISHED",
" ");
97 if (
$data[
"subitems"]) {
98 $this->tpl->setCurrentBlock(
"tbl_content");
99 $this->tpl->parseCurrentBlock();
101 foreach (
$data[
"subitems"] as $subitem) {
104 $this->tpl->setCurrentBlock(
"tbl_content");
105 $this->css_row = ($this->css_row !=
"tblrow1")
108 $this->tpl->setVariable(
"CSS_ROW", $this->css_row);
109 $this->tpl->parseCurrentBlock();
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setStyle($a_element, $a_style)
static getSurveySkippedValue()
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
enable($a_module_name)
enables particular modules of table
formatTime($timeinseconds)
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
__construct($a_parent_obj, $a_parent_cmd, $is_anonymized)
Constructor.
setFormName($a_formname="")
Set Form name.
__construct(Container $dic, ilPlugin $plugin)
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.