original_string: public function get_row_html($row, $classname = '') {
          static $suppress_lastrow = NULL;
          $rowclasses = array();
  
          if ($classname) {
              $rowclasses[] = $classname;
          }
  
          $rowid = $this->uniqueid . '_r' . $this->currentrow;
          $html = '';
  
          $html .= html_writer::start_tag('tr', array('class' => implode(' ', $rowclasses), 'id' => $rowid));
  
          // If we have a separator, print it
          if ($row === NULL) {
              $colcount = count($this->columns);
              $html .= html_writer::tag('td', html_writer::tag('div', '',
                      array('class' => 'tabledivider')), array('colspan' => $colcount));
  
          } else {
              $colbyindex = array_flip($this->columns);
              foreach ($row as $index => $data) {
                  $column = $colbyindex[$index];
  
                  $attributes = [
                      'class' => "cell c{$index}" . $this->column_class[$column],
                      'id' => "{$rowid}_c{$index}",
                      'style' => $this->make_styles_string($this->column_style[$column]),
                  ];
  
                  $celltype = 'td';
                  if ($this->headercolumn && $column == $this->headercolumn) {
                      $celltype = 'th';
                      $attributes['scope'] = 'row';
                  }
  
                  if (empty($this->prefs['collapse'][$column])) {
                      if ($this->column_suppress[$column] && $suppress_lastrow !== NULL && $suppress_lastrow[$index] === $data) {
                          $content = '&nbsp;';
                      } else {
                          $content = $data;
                      }
                  } else {
                      $content = '&nbsp;';
                  }
  
                  $html .= html_writer::tag($celltype, $content, $attributes);
              }
          }
  
          $html .= html_writer::end_tag('tr');
  
          $suppress_enabled = array_sum($this->column_suppress);
          if ($suppress_enabled) {
              $suppress_lastrow = $row;
          }
          $this->currentrow++;
          return $html;
      }
code: public function get_row_html($row, $classname = '') {
          static $suppress_lastrow = NULL;
          $rowclasses = array();
  
          if ($classname) {
              $rowclasses[] = $classname;
          }
  
          $rowid = $this->uniqueid . '_r' . $this->currentrow;
          $html = '';
  
          $html .= html_writer::start_tag('tr', array('class' => implode(' ', $rowclasses), 'id' => $rowid));
  
          // If we have a separator, print it
          if ($row === NULL) {
              $colcount = count($this->columns);
              $html .= html_writer::tag('td', html_writer::tag('div', '',
                      array('class' => 'tabledivider')), array('colspan' => $colcount));
  
          } else {
              $colbyindex = array_flip($this->columns);
              foreach ($row as $index => $data) {
                  $column = $colbyindex[$index];
  
                  $attributes = [
                      'class' => "cell c{$index}" . $this->column_class[$column],
                      'id' => "{$rowid}_c{$index}",
                      'style' => $this->make_styles_string($this->column_style[$column]),
                  ];
  
                  $celltype = 'td';
                  if ($this->headercolumn && $column == $this->headercolumn) {
                      $celltype = 'th';
                      $attributes['scope'] = 'row';
                  }
  
                  if (empty($this->prefs['collapse'][$column])) {
                      if ($this->column_suppress[$column] && $suppress_lastrow !== NULL && $suppress_lastrow[$index] === $data) {
                          $content = '&nbsp;';
                      } else {
                          $content = $data;
                      }
                  } else {
                      $content = '&nbsp;';
                  }
  
                  $html .= html_writer::tag($celltype, $content, $attributes);
              }
          }
  
          $html .= html_writer::end_tag('tr');
  
          $suppress_enabled = array_sum($this->column_suppress);
          if ($suppress_enabled) {
              $suppress_lastrow = $row;
          }
          $this->currentrow++;
          return $html;
      }
code_tokens: public function get_row_html ( $ row , $ classname = '' ) { static $ suppress_lastrow = NULL ; $ rowclasses = array ( ) ; if ( $ classname ) { $ rowclasses [ ] = $ classname ; } $ rowid = $ this -> uniqueid . '_r' . $ this -> currentrow ; $ html = '' ; $ html .= html_writer :: start_tag ( 'tr' , array ( 'class' => implode ( ' ' , $ rowclasses ) , 'id' => $ rowid ) ) ; // If we have a separator, print it if ( $ row === NULL ) { $ colcount = count ( $ this -> columns ) ; $ html .= html_writer :: tag ( 'td' , html_writer :: tag ( 'div' , '' , array ( 'class' => 'tabledivider' ) ) , array ( 'colspan' => $ colcount ) ) ; } else { $ colbyindex = array_flip ( $ this -> columns ) ; foreach ( $ row as $ index => $ data ) { $ column = $ colbyindex [ $ index ] ; $ attributes = [ 'class' => "cell c{$index}" . $ this -> column_class [ $ column ] , 'id' => "{$rowid}_c{$index}" , 'style' => $ this -> make_styles_string ( $ this -> column_style [ $ column ] ) , ] ; $ celltype = 'td' ; if ( $ this -> headercolumn && $ column == $ this -> headercolumn ) { $ celltype = 'th' ; $ attributes [ 'scope' ] = 'row' ; } if ( empty ( $ this -> prefs [ 'collapse' ] [ $ column ] ) ) { if ( $ this -> column_suppress [ $ column ] && $ suppress_lastrow !== NULL && $ suppress_lastrow [ $ index ] === $ data ) { $ content = '&nbsp;' ; } else { $ content = $ data ; } } else { $ content = '&nbsp;' ; } $ html .= html_writer :: tag ( $ celltype , $ content , $ attributes ) ; } } $ html .= html_writer :: end_tag ( 'tr' ) ; $ suppress_enabled = array_sum ( $ this -> column_suppress ) ; if ( $ suppress_enabled ) { $ suppress_lastrow = $ row ; } $ this -> currentrow ++ ; return $ html ; }
docstring: Generate html code for the passed row.
  
  @param array $row Row data.
  @param string $classname classes to add.
  
  @return string $html html code for the row passed.
docstring_tokens: Generate html code for the passed row .