original_string: public function get_quickgrading_html($userid, $grade) {
          $commenttext = '';
          if ($grade) {
              $feedbackcomments = $this->get_feedback_comments($grade->id);
              if ($feedbackcomments) {
                  $commenttext = $feedbackcomments->commenttext;
              }
          }
  
          $pluginname = get_string('pluginname', 'assignfeedback_comments');
          $labeloptions = array('for'=>'quickgrade_comments_' . $userid,
                                'class'=>'accesshide');
          $textareaoptions = array('name'=>'quickgrade_comments_' . $userid,
                                   'id'=>'quickgrade_comments_' . $userid,
                                   'class'=>'quickgrade');
          return html_writer::tag('label', $pluginname, $labeloptions) .
                 html_writer::tag('textarea', $commenttext, $textareaoptions);
      }
code: public function get_quickgrading_html($userid, $grade) {
          $commenttext = '';
          if ($grade) {
              $feedbackcomments = $this->get_feedback_comments($grade->id);
              if ($feedbackcomments) {
                  $commenttext = $feedbackcomments->commenttext;
              }
          }
  
          $pluginname = get_string('pluginname', 'assignfeedback_comments');
          $labeloptions = array('for'=>'quickgrade_comments_' . $userid,
                                'class'=>'accesshide');
          $textareaoptions = array('name'=>'quickgrade_comments_' . $userid,
                                   'id'=>'quickgrade_comments_' . $userid,
                                   'class'=>'quickgrade');
          return html_writer::tag('label', $pluginname, $labeloptions) .
                 html_writer::tag('textarea', $commenttext, $textareaoptions);
      }
code_tokens: public function get_quickgrading_html ( $ userid , $ grade ) { $ commenttext = '' ; if ( $ grade ) { $ feedbackcomments = $ this -> get_feedback_comments ( $ grade -> id ) ; if ( $ feedbackcomments ) { $ commenttext = $ feedbackcomments -> commenttext ; } } $ pluginname = get_string ( 'pluginname' , 'assignfeedback_comments' ) ; $ labeloptions = array ( 'for' => 'quickgrade_comments_' . $ userid , 'class' => 'accesshide' ) ; $ textareaoptions = array ( 'name' => 'quickgrade_comments_' . $ userid , 'id' => 'quickgrade_comments_' . $ userid , 'class' => 'quickgrade' ) ; return html_writer :: tag ( 'label' , $ pluginname , $ labeloptions ) . html_writer :: tag ( 'textarea' , $ commenttext , $ textareaoptions ) ; }
docstring: Get quickgrading form elements as html.
  
  @param int $userid The user id in the table this quickgrading element relates to
  @param mixed $grade - The grade data - may be null if there are no grades for this user (yet)
  @return mixed - A html string containing the html form elements required for quickgrading
docstring_tokens: Get quickgrading form elements as html .