/** * */ protected function initData() { $rows = array(); $total_of_answers = $this->question->getTotalAnswers(); if ($total_of_answers) { $rows[] = array('result' => $this->lng->txt('qpl_assessment_total_of_answers'), 'value' => $total_of_answers); $rows[] = array('result' => $this->lng->txt('qpl_assessment_total_of_right_answers'), 'value' => assQuestion::_getTotalRightAnswers($this->question->getId()) * 100.0); } else { $this->disable('header'); } $this->setData($rows); }