/** * function that return list of test sent test or survey by student * * @global db $dh * * @param boolean $student if true switch scope from tutor to student * * @return array an array composed of 'html', 'path' and 'title' keys */ protected function list_tests($student = false) { $array = parent::list_tests(true); $array['html'] = str_replace('&id_student=' . $this->id_student, '', $array['html']); $array['path'] = translateFN('Storico') . ' ' . ucfirst($this->plurale); $array['title'] = translateFN('Storico') . ' ' . ucfirst($this->plurale); return $array; }