original_string: protected function process_submit_other_for_grading($mform, $notices) {
          global $USER, $CFG;
  
          require_sesskey();
  
          $userid = optional_param('userid', $USER->id, PARAM_INT);
  
          if (!$this->submissions_open($userid)) {
              $notices[] = get_string('submissionsclosed', 'assign');
              return false;
          }
          $data = new stdClass();
          $data->userid = $userid;
          return $this->submit_for_grading($data, $notices);
      }
code: protected function process_submit_other_for_grading($mform, $notices) {
          global $USER, $CFG;
  
          require_sesskey();
  
          $userid = optional_param('userid', $USER->id, PARAM_INT);
  
          if (!$this->submissions_open($userid)) {
              $notices[] = get_string('submissionsclosed', 'assign');
              return false;
          }
          $data = new stdClass();
          $data->userid = $userid;
          return $this->submit_for_grading($data, $notices);
      }
code_tokens: protected function process_submit_other_for_grading ( $ mform , $ notices ) { global $ USER , $ CFG ; require_sesskey ( ) ; $ userid = optional_param ( 'userid' , $ USER -> id , PARAM_INT ) ; if ( ! $ this -> submissions_open ( $ userid ) ) { $ notices [ ] = get_string ( 'submissionsclosed' , 'assign' ) ; return false ; } $ data = new stdClass ( ) ; $ data -> userid = $ userid ; return $ this -> submit_for_grading ( $ data , $ notices ) ; }
docstring: A students submission is submitted for grading by a teacher.
  
  @return bool
docstring_tokens: A students submission is submitted for grading by a teacher .