original_string: public function is_quickgrading_modified($userid, $grade) {
          $commenttext = '';
          if ($grade) {
              $feedbackcomments = $this->get_feedback_comments($grade->id);
              if ($feedbackcomments) {
                  $commenttext = $feedbackcomments->commenttext;
              }
          }
          // Note that this handles the difference between empty and not in the quickgrading
          // form at all (hidden column).
          $newvalue = optional_param('quickgrade_comments_' . $userid, false, PARAM_RAW);
          return ($newvalue !== false) && ($newvalue != $commenttext);
      }
code: public function is_quickgrading_modified($userid, $grade) {
          $commenttext = '';
          if ($grade) {
              $feedbackcomments = $this->get_feedback_comments($grade->id);
              if ($feedbackcomments) {
                  $commenttext = $feedbackcomments->commenttext;
              }
          }
          // Note that this handles the difference between empty and not in the quickgrading
          // form at all (hidden column).
          $newvalue = optional_param('quickgrade_comments_' . $userid, false, PARAM_RAW);
          return ($newvalue !== false) && ($newvalue != $commenttext);
      }
code_tokens: public function is_quickgrading_modified ( $ userid , $ grade ) { $ commenttext = '' ; if ( $ grade ) { $ feedbackcomments = $ this -> get_feedback_comments ( $ grade -> id ) ; if ( $ feedbackcomments ) { $ commenttext = $ feedbackcomments -> commenttext ; } } // Note that this handles the difference between empty and not in the quickgrading // form at all (hidden column). $ newvalue = optional_param ( 'quickgrade_comments_' . $ userid , false , PARAM_RAW ) ; return ( $ newvalue !== false ) && ( $ newvalue != $ commenttext ) ; }
docstring: Has the plugin quickgrading form element been modified in the current form submission?
  
  @param int $userid The user id in the table this quickgrading element relates to
  @param stdClass $grade The grade
  @return boolean - true if the quickgrading form element has been modified
docstring_tokens: Has the plugin quickgrading form element been modified in the current form submission?