original_string: public function review_summary_table($summarydata, $page) {
          $summarydata = $this->filter_review_summary_table($summarydata, $page);
          if (empty($summarydata)) {
              return '';
          }
  
          $output = '';
          $output .= html_writer::start_tag('table', array(
                  'class' => 'generaltable generalbox quizreviewsummary'));
          $output .= html_writer::start_tag('tbody');
          foreach ($summarydata as $rowdata) {
              if ($rowdata['title'] instanceof renderable) {
                  $title = $this->render($rowdata['title']);
              } else {
                  $title = $rowdata['title'];
              }
  
              if ($rowdata['content'] instanceof renderable) {
                  $content = $this->render($rowdata['content']);
              } else {
                  $content = $rowdata['content'];
              }
  
              $output .= html_writer::tag('tr',
                  html_writer::tag('th', $title, array('class' => 'cell', 'scope' => 'row')) .
                          html_writer::tag('td', $content, array('class' => 'cell'))
              );
          }
  
          $output .= html_writer::end_tag('tbody');
          $output .= html_writer::end_tag('table');
          return $output;
      }
code: public function review_summary_table($summarydata, $page) {
          $summarydata = $this->filter_review_summary_table($summarydata, $page);
          if (empty($summarydata)) {
              return '';
          }
  
          $output = '';
          $output .= html_writer::start_tag('table', array(
                  'class' => 'generaltable generalbox quizreviewsummary'));
          $output .= html_writer::start_tag('tbody');
          foreach ($summarydata as $rowdata) {
              if ($rowdata['title'] instanceof renderable) {
                  $title = $this->render($rowdata['title']);
              } else {
                  $title = $rowdata['title'];
              }
  
              if ($rowdata['content'] instanceof renderable) {
                  $content = $this->render($rowdata['content']);
              } else {
                  $content = $rowdata['content'];
              }
  
              $output .= html_writer::tag('tr',
                  html_writer::tag('th', $title, array('class' => 'cell', 'scope' => 'row')) .
                          html_writer::tag('td', $content, array('class' => 'cell'))
              );
          }
  
          $output .= html_writer::end_tag('tbody');
          $output .= html_writer::end_tag('table');
          return $output;
      }
code_tokens: public function review_summary_table ( $ summarydata , $ page ) { $ summarydata = $ this -> filter_review_summary_table ( $ summarydata , $ page ) ; if ( empty ( $ summarydata ) ) { return '' ; } $ output = '' ; $ output .= html_writer :: start_tag ( 'table' , array ( 'class' => 'generaltable generalbox quizreviewsummary' ) ) ; $ output .= html_writer :: start_tag ( 'tbody' ) ; foreach ( $ summarydata as $ rowdata ) { if ( $ rowdata [ 'title' ] instanceof renderable ) { $ title = $ this -> render ( $ rowdata [ 'title' ] ) ; } else { $ title = $ rowdata [ 'title' ] ; } if ( $ rowdata [ 'content' ] instanceof renderable ) { $ content = $ this -> render ( $ rowdata [ 'content' ] ) ; } else { $ content = $ rowdata [ 'content' ] ; } $ output .= html_writer :: tag ( 'tr' , html_writer :: tag ( 'th' , $ title , array ( 'class' => 'cell' , 'scope' => 'row' ) ) . html_writer :: tag ( 'td' , $ content , array ( 'class' => 'cell' ) ) ) ; } $ output .= html_writer :: end_tag ( 'tbody' ) ; $ output .= html_writer :: end_tag ( 'table' ) ; return $ output ; }
docstring: Outputs the table containing data from summary data array
  
  @param array $summarydata contains row data for table
  @param int $page contains the current page number
docstring_tokens: Outputs the table containing data from summary data array