24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
48 $this->
setId(
"svy_sum_score");
51 $lng = $DIC->language();
52 $ilCtrl = $DIC->ctrl();
56 $this->ctrl = $ilCtrl;
59 $this->
addColumn($this->lng->txt(
"username"),
'username',
'');
60 $this->
addColumn($this->lng->txt(
"svy_sum_score"),
'score',
'');
86 if (
$data[
'score'] === null) {
87 $data[
'score'] =
"n.a.";
89 $this->tpl->setVariable(
"SUM_SCORE",
$data[
'score']);
90 $this->tpl->setVariable(
"PARTICIPANT",
$data[
'username']);
95 $a_excel->
setCell($a_row, 0, $this->lng->txt(
"username"));
96 $a_excel->
setCell($a_row, 1, $this->lng->txt(
"sum_score"));
102 if ($a_set[
'score'] === null) {
103 $a_set[
'score'] =
"n.a.";
105 $a_excel->
setCell($a_row, 0, $a_set[
"username"]);
106 $a_excel->
setCell($a_row, 1, $a_set[
"score"]);
111 $a_csv->addColumn($this->lng->txt(
"username"));
112 $a_csv->addColumn($this->lng->txt(
"score"));
117 if ($a_set[
'score'] === null) {
118 $a_set[
'score'] =
"n.a.";
120 $a_csv->addColumn($a_set[
"title"]);
121 $a_csv->addColumn($a_set[
"score"]);
setSumScores($scores)
Set sum scores.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setExportFormats(array $formats)
Set available export formats.
fillRowExcel(ilExcel $a_excel, &$a_row, $a_set)
getColumnCoord($a_col)
Get column "name" from number.
setBold($a_coords)
Set cell(s) to bold.
__construct($a_parent_obj, $a_parent_cmd, $is_anonymized)
ilSumScoreTableGUI constructor.
setCell($a_row, $a_col, $a_value, $a_datatype=null)
Set cell value.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
fillRowCSV($a_csv, $a_set)
__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.
fillHeaderExcel(ilExcel $a_excel, &$a_row)