function assignment_onlinejudge($cmid = 'staticonly', $assignment = NULL, $cm = NULL, $course = NULL)
 {
     global $DB;
     parent::assignment_upload($cmid, $assignment, $cm, $course);
     $this->type = 'onlinejudge';
     if (isset($this->assignment->id)) {
         $this->onlinejudge = $DB->get_record('assignment_oj', array('assignment' => $this->assignment->id), '*', MUST_EXIST);
     }
 }
 function assignment_team($cmid = 'staticonly', $assignment = NULL, $cm = NULL, $course = NULL)
 {
     parent::assignment_upload($cmid, $assignment, $cm, $course);
     $this->type = 'typeteam';
 }