27         ?
object $a_parent_obj,
    32         $this->
setId(
"svy_usr");
    35         $lng = $DIC->language();
    36         $ilCtrl = $DIC->ctrl();
    39         $this->
ctrl = $ilCtrl;
    43         $this->
setStyle(
'table', 
'fullwidth');
    46             "tpl.il_svy_svy_results_user_row.html",
    47             "components/ILIAS/Survey/Evaluation"    50         if (!is_null($a_parent_obj)) {
    52             $this->
addColumn($this->
lng->txt(
"username"), 
'username', 
'');
    55             $this->
addColumn($this->
lng->txt(
"workingtime"), 
'workingtime', 
'');
    56             $this->
addColumn($this->
lng->txt(
"survey_results_finished"), 
'finished', 
'');
    62             $this->enabled[
"linkbar"] = 
false;
    66             $this->
addColumn($this->
lng->txt(
"workingtime"), 
'', 
'');
    67             $this->
addColumn($this->
lng->txt(
"survey_results_finished"), 
'', 
'');
    77     protected function formatTime(?
int $timeinseconds): string
    79         if (is_null($timeinseconds)) {
    81         } elseif ($timeinseconds === 0) {
    82             return $this->
lng->txt(
'not_available');
    84             return sprintf(
"%02d:%02d:%02d", (
int) ($timeinseconds / 3600), (
int) ($timeinseconds / 60) % 60, (
int) $timeinseconds % 60);
    88     protected function fillRow(array $a_set): void
    90         $this->tpl->setVariable(
"USERNAME", $a_set[
'username']);
    91         $this->tpl->setVariable(
"QUESTION", $a_set[
'question']);
    93             return htmlentities($i);
    94         }, $a_set[
"results"]);
    95         $this->tpl->setVariable(
"RESULTS", 
$results    98         $this->tpl->setVariable(
"WORKINGTIME", $this->
formatTime($a_set[
'workingtime']));
   100         if ($a_set[
"finished"] !== null) {
   101             if ($a_set[
"finished"] !== 
false) {
   106             $this->tpl->setVariable(
"FINISHED", $finished);
   108             $this->tpl->setVariable(
"FINISHED", 
" ");
   111         if (isset($a_set[
"subitems"])) {
   112             $this->tpl->setCurrentBlock(
"tbl_content");
   113             $this->tpl->parseCurrentBlock();
   115             foreach ($a_set[
"subitems"] as $subitem) {
   118                 $this->tpl->setCurrentBlock(
"tbl_content");
   119                 $this->css_row = ($this->css_row !== 
"tblrow1")
   122                 $this->tpl->setVariable(
"CSS_ROW", $this->css_row);
   123                 $this->tpl->parseCurrentBlock();
 static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ilObjUser $user=null,)
 
enable(string $a_module_name)
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
__construct(?object $a_parent_obj, string $a_parent_cmd)
 
static getSurveySkippedValue()
 
setFormName(string $a_name="")
 
formatTime(?int $timeinseconds)
 
setStyle(string $a_element, string $a_style)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector. 
 
setDefaultOrderField(string $a_defaultorderfield)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setEnableNumInfo(bool $a_val)
 
__construct(Container $dic, ilPlugin $plugin)
 
setLimit(int $a_limit=0, int $a_default_limit=0)
 
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)
 
disable(string $a_module_name)
 
setEnableHeader(bool $a_enableheader)