protected function update_peer_grade(stdclass $assessment) {
        $grades     = $this->get_current_assessment_data($assessment);
        $suggested  = $this->calculate_peer_grade($grades);
        if (!is_null($suggested)) {
            $this->workshop->set_peer_grade($assessment->id, $suggested);
        }
        return $suggested;
    }
protected function update_peer_grade(stdclass $assessment) {
        $grades     = $this->get_current_assessment_data($assessment);
        $suggested  = $this->calculate_peer_grade($grades);
        if (!is_null($suggested)) {
            $this->workshop->set_peer_grade($assessment->id, $suggested);
        }
        return $suggested;
    }
protected function update_peer_grade ( stdclass $ assessment ) { $ grades = $ this -> get_current_assessment_data ( $ assessment ) ; $ suggested = $ this -> calculate_peer_grade ( $ grades ) ; if ( ! is_null ( $ suggested ) ) { $ this -> workshop -> set_peer_grade ( $ assessment -> id , $ suggested ) ; } return $ suggested ; }
Aggregates the assessment form data and sets the grade for the submission given by the peer

@param stdClass $assessment Assessment record
@return float|null          Raw grade (from 0.00000 to 100.00000) for submission as suggested by the peer
Aggregates the assessment form data and sets the grade for the submission given by the peer