original_string: public function get_form_elements_for_user($grade, MoodleQuickForm $mform, stdClass $data, $userid) {
          global $PAGE;
  
          $attempt = -1;
          if ($grade) {
              $attempt = $grade->attemptnumber;
          }
  
          $renderer = $PAGE->get_renderer('assignfeedback_editpdf');
  
          $widget = $this->get_widget($userid, $grade, false);
  
          $html = $renderer->render($widget);
          $mform->addElement('static', 'editpdf', get_string('editpdf', 'assignfeedback_editpdf'), $html);
          $mform->addHelpButton('editpdf', 'editpdf', 'assignfeedback_editpdf');
          $mform->addElement('hidden', 'editpdf_source_userid', $userid);
          $mform->setType('editpdf_source_userid', PARAM_INT);
          $mform->setConstant('editpdf_source_userid', $userid);
      }
code: public function get_form_elements_for_user($grade, MoodleQuickForm $mform, stdClass $data, $userid) {
          global $PAGE;
  
          $attempt = -1;
          if ($grade) {
              $attempt = $grade->attemptnumber;
          }
  
          $renderer = $PAGE->get_renderer('assignfeedback_editpdf');
  
          $widget = $this->get_widget($userid, $grade, false);
  
          $html = $renderer->render($widget);
          $mform->addElement('static', 'editpdf', get_string('editpdf', 'assignfeedback_editpdf'), $html);
          $mform->addHelpButton('editpdf', 'editpdf', 'assignfeedback_editpdf');
          $mform->addElement('hidden', 'editpdf_source_userid', $userid);
          $mform->setType('editpdf_source_userid', PARAM_INT);
          $mform->setConstant('editpdf_source_userid', $userid);
      }
code_tokens: public function get_form_elements_for_user ( $ grade , MoodleQuickForm $ mform , stdClass $ data , $ userid ) { global $ PAGE ; $ attempt = - 1 ; if ( $ grade ) { $ attempt = $ grade -> attemptnumber ; } $ renderer = $ PAGE -> get_renderer ( 'assignfeedback_editpdf' ) ; $ widget = $ this -> get_widget ( $ userid , $ grade , false ) ; $ html = $ renderer -> render ( $ widget ) ; $ mform -> addElement ( 'static' , 'editpdf' , get_string ( 'editpdf' , 'assignfeedback_editpdf' ) , $ html ) ; $ mform -> addHelpButton ( 'editpdf' , 'editpdf' , 'assignfeedback_editpdf' ) ; $ mform -> addElement ( 'hidden' , 'editpdf_source_userid' , $ userid ) ; $ mform -> setType ( 'editpdf_source_userid' , PARAM_INT ) ; $ mform -> setConstant ( 'editpdf_source_userid' , $ userid ) ; }
docstring: Get form elements for grading form
  
  @param stdClass $grade
  @param MoodleQuickForm $mform
  @param stdClass $data
  @param int $userid
  @return bool true if elements were added to the form
docstring_tokens: Get form elements for grading form