public function update_gradebook($reset, $coursemoduleid) {
        global $CFG;

        require_once($CFG->dirroot.'/mod/assign/lib.php');
        $assign = clone $this->get_instance();
        $assign->cmidnumber = $coursemoduleid;

        // Set assign gradebook feedback plugin status (enabled and visible).
        $assign->gradefeedbackenabled = $this->is_gradebook_feedback_enabled();

        $param = null;
        if ($reset) {
            $param = 'reset';
        }

        return assign_grade_item_update($assign, $param);
    }
public function update_gradebook($reset, $coursemoduleid) {
        global $CFG;

        require_once($CFG->dirroot.'/mod/assign/lib.php');
        $assign = clone $this->get_instance();
        $assign->cmidnumber = $coursemoduleid;

        // Set assign gradebook feedback plugin status (enabled and visible).
        $assign->gradefeedbackenabled = $this->is_gradebook_feedback_enabled();

        $param = null;
        if ($reset) {
            $param = 'reset';
        }

        return assign_grade_item_update($assign, $param);
    }
public function update_gradebook ( $ reset , $ coursemoduleid ) { global $ CFG ; require_once ( $ CFG -> dirroot . '/mod/assign/lib.php' ) ; $ assign = clone $ this -> get_instance ( ) ; $ assign -> cmidnumber = $ coursemoduleid ; // Set assign gradebook feedback plugin status (enabled and visible). $ assign -> gradefeedbackenabled = $ this -> is_gradebook_feedback_enabled ( ) ; $ param = null ; if ( $ reset ) { $ param = 'reset' ; } return assign_grade_item_update ( $ assign , $ param ) ; }
Update the gradebook information for this assignment.

@param bool $reset If true, will reset all grades in the gradbook for this assignment
@param int $coursemoduleid This is required because it might not exist in the database yet
@return bool
Update the gradebook information for this assignment .