original_string: public function get_current_manual_comment() {
          $comment = $this->get_submitted_var($this->get_behaviour_field_name('comment'), PARAM_RAW);
          if (is_null($comment)) {
              return $this->get_manual_comment();
          } else {
              $commentformat = $this->get_submitted_var(
                      $this->get_behaviour_field_name('commentformat'), PARAM_INT);
              if ($commentformat === null) {
                  $commentformat = FORMAT_HTML;
              }
              return array($comment, $commentformat, null);
          }
      }
code: public function get_current_manual_comment() {
          $comment = $this->get_submitted_var($this->get_behaviour_field_name('comment'), PARAM_RAW);
          if (is_null($comment)) {
              return $this->get_manual_comment();
          } else {
              $commentformat = $this->get_submitted_var(
                      $this->get_behaviour_field_name('commentformat'), PARAM_INT);
              if ($commentformat === null) {
                  $commentformat = FORMAT_HTML;
              }
              return array($comment, $commentformat, null);
          }
      }
code_tokens: public function get_current_manual_comment ( ) { $ comment = $ this -> get_submitted_var ( $ this -> get_behaviour_field_name ( 'comment' ) , PARAM_RAW ) ; if ( is_null ( $ comment ) ) { return $ this -> get_manual_comment ( ) ; } else { $ commentformat = $ this -> get_submitted_var ( $ this -> get_behaviour_field_name ( 'commentformat' ) , PARAM_INT ) ; if ( $ commentformat === null ) { $ commentformat = FORMAT_HTML ; } return array ( $ comment , $ commentformat , null ) ; } }
docstring: This is used by the manual grading code, particularly in association with
  validation. If there is a comment submitted in the request, then use that,
  otherwise use the latest comment for this question.
  
  @return array with three elements, comment, commentformat and mark.
docstring_tokens: This is used by the manual grading code particularly in association with validation . If there is a comment submitted in the request then use that otherwise use the latest comment for this question .