24include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
48 $this->
setId(
"svy_sum_score");
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"]);
An exception for terminatinating execution or to throw for unit testing.
setCell($a_row, $a_col, $a_value, $a_datatype=null)
Set cell value.
setBold($a_coords)
Set cell(s) to bold.
getColumnCoord($a_col)
Get column "name" from number.
fillHeaderExcel(ilExcel $a_excel, &$a_row)
Excel Version of Fill Header.
fillRowCSV($a_csv, $a_set)
CSV Version of Fill Row.
__construct($a_parent_obj, $a_parent_cmd, $is_anonymized)
ilSumScoreTableGUI constructor.
setSumScores($scores)
Set sum scores.
fillHeaderCSV($a_csv)
CSV Version of Fill Header.
fillRowExcel(ilExcel $a_excel, &$a_row, $a_set)
Excel Version of Fill Row.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setExportFormats(array $formats)
Set available export formats.
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.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc