original_string: public function html() {
          global $OUTPUT;
  
          $context = (object) [
              'id' => $this->name,
              'name' => $this->name,
              'value' => $this->value,
              'disabled' => $this->isdisabled,
          ];
  
          $context->label = '';
          if (preg_match("/^feedback/", $this->name)) {
              $context->label = get_string('feedbackfor', 'gradereport_singleview', $this->label);
              $context->tabindex = '2';
          } else if (preg_match("/^finalgrade/", $this->name)) {
              $context->label = get_string('gradefor', 'gradereport_singleview', $this->label);
              $context->tabindex = '1';
          }
  
          return $OUTPUT->render_from_template('gradereport_singleview/text_attribute', $context);
      }
code: public function html() {
          global $OUTPUT;
  
          $context = (object) [
              'id' => $this->name,
              'name' => $this->name,
              'value' => $this->value,
              'disabled' => $this->isdisabled,
          ];
  
          $context->label = '';
          if (preg_match("/^feedback/", $this->name)) {
              $context->label = get_string('feedbackfor', 'gradereport_singleview', $this->label);
              $context->tabindex = '2';
          } else if (preg_match("/^finalgrade/", $this->name)) {
              $context->label = get_string('gradefor', 'gradereport_singleview', $this->label);
              $context->tabindex = '1';
          }
  
          return $OUTPUT->render_from_template('gradereport_singleview/text_attribute', $context);
      }
code_tokens: public function html ( ) { global $ OUTPUT ; $ context = ( object ) [ 'id' => $ this -> name , 'name' => $ this -> name , 'value' => $ this -> value , 'disabled' => $ this -> isdisabled , ] ; $ context -> label = '' ; if ( preg_match ( "/^feedback/" , $ this -> name ) ) { $ context -> label = get_string ( 'feedbackfor' , 'gradereport_singleview' , $ this -> label ) ; $ context -> tabindex = '2' ; } else if ( preg_match ( "/^finalgrade/" , $ this -> name ) ) { $ context -> label = get_string ( 'gradefor' , 'gradereport_singleview' , $ this -> label ) ; $ context -> tabindex = '1' ; } return $ OUTPUT -> render_from_template ( 'gradereport_singleview/text_attribute' , $ context ) ; }
docstring: Render the html for this field.
  @return string The HTML.
docstring_tokens: Render the html for this field .