public function update_definition(stdClass $newdefinition, $usermodified = null) {
        $this->update_or_check_rubric($newdefinition, $usermodified, true);
        if (isset($newdefinition->rubric['regrade']) && $newdefinition->rubric['regrade']) {
            $this->mark_for_regrade();
        }
    }
public function update_definition(stdClass $newdefinition, $usermodified = null) {
        $this->update_or_check_rubric($newdefinition, $usermodified, true);
        if (isset($newdefinition->rubric['regrade']) && $newdefinition->rubric['regrade']) {
            $this->mark_for_regrade();
        }
    }
public function update_definition ( stdClass $ newdefinition , $ usermodified = null ) { $ this -> update_or_check_rubric ( $ newdefinition , $ usermodified , true ) ; if ( isset ( $ newdefinition -> rubric [ 'regrade' ] ) && $ newdefinition -> rubric [ 'regrade' ] ) { $ this -> mark_for_regrade ( ) ; } }
Saves the rubric definition into the database

@see parent::update_definition()
@param stdClass $newdefinition rubric definition data as coming from gradingform_rubric_editrubric::get_data()
@param int|null $usermodified optional userid of the author of the definition, defaults to the current user
Saves the rubric definition into the database