original_string: public function force_regrading() {
          global $DB;
          $this->needsupdate = 1;
          //mark this item and course item only - categories and calculated items are always regraded
          $wheresql = "(itemtype='course' OR id=?) AND courseid=?";
          $params   = array($this->id, $this->courseid);
          $DB->set_field_select('grade_items', 'needsupdate', 1, $wheresql, $params);
      }
code: public function force_regrading() {
          global $DB;
          $this->needsupdate = 1;
          //mark this item and course item only - categories and calculated items are always regraded
          $wheresql = "(itemtype='course' OR id=?) AND courseid=?";
          $params   = array($this->id, $this->courseid);
          $DB->set_field_select('grade_items', 'needsupdate', 1, $wheresql, $params);
      }
code_tokens: public function force_regrading ( ) { global $ DB ; $ this -> needsupdate = 1 ; //mark this item and course item only - categories and calculated items are always regraded $ wheresql = "(itemtype='course' OR id=?) AND courseid=?" ; $ params = array ( $ this -> id , $ this -> courseid ) ; $ DB -> set_field_select ( 'grade_items' , 'needsupdate' , 1 , $ wheresql , $ params ) ; }
docstring: Sets this grade_item's needsupdate to true. Also marks the course item as needing update.
  
  @return void
docstring_tokens: Sets this grade_item s needsupdate to true . Also marks the course item as needing update .