public function get_form_elements_for_user($grade, MoodleQuickForm $mform, stdClass $data, $userid) {

        $fileoptions = $this->get_file_options();
        $gradeid = $grade ? $grade->id : 0;
        $elementname = 'files_' . $userid;

        $data = file_prepare_standard_filemanager($data,
                                                  $elementname,
                                                  $fileoptions,
                                                  $this->assignment->get_context(),
                                                  'assignfeedback_file',
                                                  ASSIGNFEEDBACK_FILE_FILEAREA,
                                                  $gradeid);
        $mform->addElement('filemanager', $elementname . '_filemanager', $this->get_name(), null, $fileoptions);

        return true;
    }
public function get_form_elements_for_user($grade, MoodleQuickForm $mform, stdClass $data, $userid) {

        $fileoptions = $this->get_file_options();
        $gradeid = $grade ? $grade->id : 0;
        $elementname = 'files_' . $userid;

        $data = file_prepare_standard_filemanager($data,
                                                  $elementname,
                                                  $fileoptions,
                                                  $this->assignment->get_context(),
                                                  'assignfeedback_file',
                                                  ASSIGNFEEDBACK_FILE_FILEAREA,
                                                  $gradeid);
        $mform->addElement('filemanager', $elementname . '_filemanager', $this->get_name(), null, $fileoptions);

        return true;
    }
public function get_form_elements_for_user ( $ grade , MoodleQuickForm $ mform , stdClass $ data , $ userid ) { $ fileoptions = $ this -> get_file_options ( ) ; $ gradeid = $ grade ? $ grade -> id : 0 ; $ elementname = 'files_' . $ userid ; $ data = file_prepare_standard_filemanager ( $ data , $ elementname , $ fileoptions , $ this -> assignment -> get_context ( ) , 'assignfeedback_file' , ASSIGNFEEDBACK_FILE_FILEAREA , $ gradeid ) ; $ mform -> addElement ( 'filemanager' , $ elementname . '_filemanager' , $ this -> get_name ( ) , null , $ fileoptions ) ; return true ; }
Get form elements for grading form.

@param stdClass $grade
@param MoodleQuickForm $mform
@param stdClass $data
@param int $userid The userid we are currently grading
@return bool true if elements were added to the form
Get form elements for grading form .