public function get_feedbackreviewer_form($actionurl, stdclass $assessment, $options=array()) {
        global $CFG;
        require_once(__DIR__ . '/feedbackreviewer_form.php');

        $current = new stdclass();
        $current->asid                      = $assessment->id;
        $current->weight                    = $assessment->weight;
        $current->gradinggrade              = $this->real_grading_grade($assessment->gradinggrade);
        $current->gradinggradeover          = $this->real_grading_grade($assessment->gradinggradeover);
        $current->feedbackreviewer          = $assessment->feedbackreviewer;
        $current->feedbackreviewerformat    = $assessment->feedbackreviewerformat;
        if (is_null($current->gradinggrade)) {
            $current->gradinggrade = get_string('nullgrade', 'workshop');
        }
        if (!isset($options['editable'])) {
            $editable = true;   // by default
        } else {
            $editable = (bool)$options['editable'];
        }

        // prepare wysiwyg editor
        $current = file_prepare_standard_editor($current, 'feedbackreviewer', array());

        return new workshop_feedbackreviewer_form($actionurl,
                array('workshop' => $this, 'current' => $current, 'editoropts' => array(), 'options' => $options),
                'post', '', null, $editable);
    }
public function get_feedbackreviewer_form($actionurl, stdclass $assessment, $options=array()) {
        global $CFG;
        require_once(__DIR__ . '/feedbackreviewer_form.php');

        $current = new stdclass();
        $current->asid                      = $assessment->id;
        $current->weight                    = $assessment->weight;
        $current->gradinggrade              = $this->real_grading_grade($assessment->gradinggrade);
        $current->gradinggradeover          = $this->real_grading_grade($assessment->gradinggradeover);
        $current->feedbackreviewer          = $assessment->feedbackreviewer;
        $current->feedbackreviewerformat    = $assessment->feedbackreviewerformat;
        if (is_null($current->gradinggrade)) {
            $current->gradinggrade = get_string('nullgrade', 'workshop');
        }
        if (!isset($options['editable'])) {
            $editable = true;   // by default
        } else {
            $editable = (bool)$options['editable'];
        }

        // prepare wysiwyg editor
        $current = file_prepare_standard_editor($current, 'feedbackreviewer', array());

        return new workshop_feedbackreviewer_form($actionurl,
                array('workshop' => $this, 'current' => $current, 'editoropts' => array(), 'options' => $options),
                'post', '', null, $editable);
    }
public function get_feedbackreviewer_form ( $ actionurl , stdclass $ assessment , $ options = array ( ) ) { global $ CFG ; require_once ( __DIR__ . '/feedbackreviewer_form.php' ) ; $ current = new stdclass ( ) ; $ current -> asid = $ assessment -> id ; $ current -> weight = $ assessment -> weight ; $ current -> gradinggrade = $ this -> real_grading_grade ( $ assessment -> gradinggrade ) ; $ current -> gradinggradeover = $ this -> real_grading_grade ( $ assessment -> gradinggradeover ) ; $ current -> feedbackreviewer = $ assessment -> feedbackreviewer ; $ current -> feedbackreviewerformat = $ assessment -> feedbackreviewerformat ; if ( is_null ( $ current -> gradinggrade ) ) { $ current -> gradinggrade = get_string ( 'nullgrade' , 'workshop' ) ; } if ( ! isset ( $ options [ 'editable' ] ) ) { $ editable = true ; // by default } else { $ editable = ( bool ) $ options [ 'editable' ] ; } // prepare wysiwyg editor $ current = file_prepare_standard_editor ( $ current , 'feedbackreviewer' , array ( ) ) ; return new workshop_feedbackreviewer_form ( $ actionurl , array ( 'workshop' => $ this , 'current' => $ current , 'editoropts' => array ( ) , 'options' => $ options ) , 'post' , '' , null , $ editable ) ; }
Returns the mform the teachers use to put a feedback for the reviewer

@param mixed moodle_url|null $actionurl
@param stdClass $assessment
@param array $options editable, editableweight, overridablegradinggrade
@return workshop_feedbackreviewer_form
Returns the mform the teachers use to put a feedback for the reviewer