original_string: public function mark_for_regrade() {
          global $DB;
          if ($this->has_active_instances()) {
              $conditions = array('definitionid'  => $this->definition->id,
                          'status'  => gradingform_instance::INSTANCE_STATUS_ACTIVE);
              $DB->set_field('grading_instances', 'status', gradingform_instance::INSTANCE_STATUS_NEEDUPDATE, $conditions);
          }
      }
code: public function mark_for_regrade() {
          global $DB;
          if ($this->has_active_instances()) {
              $conditions = array('definitionid'  => $this->definition->id,
                          'status'  => gradingform_instance::INSTANCE_STATUS_ACTIVE);
              $DB->set_field('grading_instances', 'status', gradingform_instance::INSTANCE_STATUS_NEEDUPDATE, $conditions);
          }
      }
code_tokens: public function mark_for_regrade ( ) { global $ DB ; if ( $ this -> has_active_instances ( ) ) { $ conditions = array ( 'definitionid' => $ this -> definition -> id , 'status' => gradingform_instance :: INSTANCE_STATUS_ACTIVE ) ; $ DB -> set_field ( 'grading_instances' , 'status' , gradingform_instance :: INSTANCE_STATUS_NEEDUPDATE , $ conditions ) ; } }
docstring: Marks all instances filled with this guide with the status INSTANCE_STATUS_NEEDUPDATE
docstring_tokens: Marks all instances filled with this guide with the status INSTANCE_STATUS_NEEDUPDATE