19 declare(strict_types=1);
33 foreach ($rows as $evalrow) {
34 $csvrow = $this->test_obj->processCSVRow($evalrow,
true, $separator);
35 $csv .= implode($separator, $csvrow) .
"\n";
37 $this->content = $csv;
43 $data = $this->test_obj->getAggregatedResultsData();
46 $this->
lng->txt(
"result"),
47 $this->
lng->txt(
"value")
49 foreach (
$data[
"overview"] as
$key => $value) {
56 $this->
lng->txt(
"question_id"),
57 $this->
lng->txt(
"question_title"),
58 $this->
lng->txt(
"average_reached_points"),
59 $this->
lng->txt(
"points"),
60 $this->
lng->txt(
"percentage"),
61 $this->
lng->txt(
"number_of_answers")
63 foreach (
$data[
"questions"] as
$key => $value) {
75 foreach ($rows as $evalrow) {
76 $csvrow = $this->test_obj->processCSVRow($evalrow,
true, $separator);
77 $csv .= implode($separator, $csvrow) .
"\n";
79 $this->content = $csv;
84 public function deliver(
string $title): void
getDatarows(ilObjTest $test_obj)
static deliverData(string $a_data, string $a_filename, string $mime="application/octet-stream")
static getASCIIFilename(string $a_filename)