protected function getDetailItems($a_obj_id) { $data = array(); $all_status = array_merge(array("mem_cnt"), $this->status); include_once "Services/Tracking/classes/class.ilTrQuery.php"; foreach (ilTrQuery::getObjectLPStatistics(array($a_obj_id), $this->filter["yearmonth"]) as $item) { $month = "month_" . $item["yyyy"] . "-" . str_pad($item["mm"], 2, "0", STR_PAD_LEFT); foreach ($all_status as $status) { // status-id to field name if ($status != "mem_cnt") { $field = $this->status_map[$status]; } else { $field = $status; } // aggregated fields foreach ($this->types as $type) { $value = $item[$field . "_" . $type]; $idx = $item["yyyy"] . "-" . str_pad($item["mm"], 2, "0", STR_PAD_LEFT); $data[$status . "_" . $type]["month_" . $idx] = $value; } } } // add captions foreach (array_keys($data) as $figure) { $status = substr($figure, 0, -4); $type = substr($figure, -3); if ($status != "mem_cnt") { $path = ilLearningProgressBaseGUI::_getImagePathForStatus((int) $status); $text = ilLearningProgressBaseGUI::_getStatusText((int) $status); $icon = ilUtil::img($path, $text); $text = $icon . " " . $text; } else { $text = $this->lng->txt("members"); } if ($type != "avg") { $caption = $text . " " . $this->lng->txt("trac_object_stat_lp_" . $type); } else { $caption = $text . " Ø"; } $data[$figure]["figure"] = $caption; } $this->setData($data); }