original_string: public function html() {
  
          $attributes = array(
              'type' => 'checkbox',
              'name' => $this->name,
              'value' => 1,
              'id' => $this->name
          );
  
          // UCSB fixed user should not be able to override locked grade.
          if ( $this->locked) {
              $attributes['disabled'] = 'DISABLED';
          }
  
          $hidden = array(
              'type' => 'hidden',
              'name' => 'old' . $this->name
          );
  
          if ($this->ischecked) {
              $attributes['checked'] = 'CHECKED';
              $hidden['value'] = 1;
          }
  
          $type = "override";
          if (preg_match("/^exclude/", $this->name)) {
              $type = "exclude";
          }
  
          return (
              html_writer::tag('label',
                               get_string($type . 'for', 'gradereport_singleview', $this->label),
                               array('for' => $this->name, 'class' => 'accesshide')) .
              html_writer::empty_tag('input', $attributes) .
              html_writer::empty_tag('input', $hidden)
          );
      }
code: public function html() {
  
          $attributes = array(
              'type' => 'checkbox',
              'name' => $this->name,
              'value' => 1,
              'id' => $this->name
          );
  
          // UCSB fixed user should not be able to override locked grade.
          if ( $this->locked) {
              $attributes['disabled'] = 'DISABLED';
          }
  
          $hidden = array(
              'type' => 'hidden',
              'name' => 'old' . $this->name
          );
  
          if ($this->ischecked) {
              $attributes['checked'] = 'CHECKED';
              $hidden['value'] = 1;
          }
  
          $type = "override";
          if (preg_match("/^exclude/", $this->name)) {
              $type = "exclude";
          }
  
          return (
              html_writer::tag('label',
                               get_string($type . 'for', 'gradereport_singleview', $this->label),
                               array('for' => $this->name, 'class' => 'accesshide')) .
              html_writer::empty_tag('input', $attributes) .
              html_writer::empty_tag('input', $hidden)
          );
      }
code_tokens: public function html ( ) { $ attributes = array ( 'type' => 'checkbox' , 'name' => $ this -> name , 'value' => 1 , 'id' => $ this -> name ) ; // UCSB fixed user should not be able to override locked grade. if ( $ this -> locked ) { $ attributes [ 'disabled' ] = 'DISABLED' ; } $ hidden = array ( 'type' => 'hidden' , 'name' => 'old' . $ this -> name ) ; if ( $ this -> ischecked ) { $ attributes [ 'checked' ] = 'CHECKED' ; $ hidden [ 'value' ] = 1 ; } $ type = "override" ; if ( preg_match ( "/^exclude/" , $ this -> name ) ) { $ type = "exclude" ; } return ( html_writer :: tag ( 'label' , get_string ( $ type . 'for' , 'gradereport_singleview' , $ this -> label ) , array ( 'for' => $ this -> name , 'class' => 'accesshide' ) ) . html_writer :: empty_tag ( 'input' , $ attributes ) . html_writer :: empty_tag ( 'input' , $ hidden ) ) ; }
docstring: Generate the HTML
  
  @return string
docstring_tokens: Generate the HTML