public function ACT_record() { $contest_id = $this->path_option->getVar('contest'); $user_id = $this->path_option->getVar('user'); $problem_id = $this->path_option->getVar('problem'); $contest = new MDL_Contest($contest_id); $user = new MDL_User($user_id); $contest_user = new MDL_Contest_User($contest, $user); if ($problem_id != NULL) { $problem = new MDL_Problem($problem_id); $records = $contest_user->getRecordsWithProblem($problem); } else { $records = $contest_user->getRecords(); } $list = new MDL_Record_List(1); $list->setList($records); $this->view->list = $list; $this->view->display('record/list.php'); }