コード例 #1
0
ファイル: solutions.php プロジェクト: andrejjursa/list-lms
 public function get_student_file_content($task_set_id, $solution_id, $solution_file)
 {
     $task_set = new Task_set();
     $task_set->where_related('solution', 'id', $solution_id);
     $task_set->include_related('solution/student', 'id');
     $task_set->get_by_id($task_set_id);
     $files = array();
     if ($task_set->exists()) {
         $file_name = decode_from_url($solution_file);
         $files = $task_set->get_student_file_content($file_name);
     }
     $this->parser->parse('backend/solutions/list_of_file_content.tpl', array('files' => $files));
 }