34 $this->
setId(
"svy_sum_score");
37 $lng = $DIC->language();
38 $ilCtrl = $DIC->ctrl();
41 $this->
ctrl = $ilCtrl;
44 $this->
addColumn($this->
lng->txt(
"username"),
'username',
'');
45 $this->
addColumn($this->
lng->txt(
"svy_sum_score"),
'score',
'');
60 protected function fillRow(array $a_set): void
62 if ($a_set[
'score'] === null) {
63 $a_set[
'score'] =
"n.a.";
65 $this->tpl->setVariable(
"SUM_SCORE", $a_set[
'score']);
66 $this->tpl->setVariable(
"PARTICIPANT", $a_set[
'username']);
71 $a_excel->
setCell($a_row, 0, $this->
lng->txt(
"username"));
72 $a_excel->
setCell($a_row, 1, $this->
lng->txt(
"sum_score"));
78 if ($a_set[
'score'] === null) {
79 $a_set[
'score'] =
"n.a.";
81 $a_excel->
setCell($a_row, 0, $a_set[
"username"]);
82 $a_excel->
setCell($a_row, 1, $a_set[
"score"]);
93 if ($a_set[
'score'] === null) {
94 $a_set[
'score'] =
"n.a.";
setExportFormats(array $formats)
Set available export formats.
__construct(object $a_parent_obj, string $a_parent_cmd, bool $is_anonymized)
fillRowExcel(ilExcel $a_excel, int &$a_row, array $a_set)
getColumnCoord(int $a_col)
Get column "name" from number.
fillHeaderCSV(ilCSVWriter $a_csv)
setCell(int $a_row, int $a_col, $a_value, ?string $a_datatype=null)
Set cell value.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
fillHeaderExcel(ilExcel $a_excel, int &$a_row)
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
setBold(string $a_coords)
Set cell(s) to bold.
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setSumScores(array $scores)
fillRowCSV(ilCSVWriter $a_csv, array $a_set)
__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)