original_string: public function render_event_list($form, $tabledata) {
          global $PAGE;
  
          $title = get_string('pluginname', 'report_eventlist');
  
          // Header.
          $html = $this->output->header();
          $html .= $this->output->heading($title);
  
          // Form.
          ob_start();
          $form->display();
          $html .= ob_get_contents();
          ob_end_clean();
  
          $PAGE->requires->yui_module('moodle-report_eventlist-eventfilter', 'Y.M.report_eventlist.EventFilter.init',
                  array(array('tabledata' => $tabledata)));
          $PAGE->requires->strings_for_js(array(
              'eventname',
              'component',
              'action',
              'crud',
              'edulevel',
              'affectedtable',
              'dname',
              'legacyevent',
              'since'
              ), 'report_eventlist');
          $html .= html_writer::start_div('report-eventlist-data-table', array('id' => 'report-eventlist-table'));
          $html .= html_writer::end_div();
  
          $html .= $this->output->footer();
          return $html;
      }
code: public function render_event_list($form, $tabledata) {
          global $PAGE;
  
          $title = get_string('pluginname', 'report_eventlist');
  
          // Header.
          $html = $this->output->header();
          $html .= $this->output->heading($title);
  
          // Form.
          ob_start();
          $form->display();
          $html .= ob_get_contents();
          ob_end_clean();
  
          $PAGE->requires->yui_module('moodle-report_eventlist-eventfilter', 'Y.M.report_eventlist.EventFilter.init',
                  array(array('tabledata' => $tabledata)));
          $PAGE->requires->strings_for_js(array(
              'eventname',
              'component',
              'action',
              'crud',
              'edulevel',
              'affectedtable',
              'dname',
              'legacyevent',
              'since'
              ), 'report_eventlist');
          $html .= html_writer::start_div('report-eventlist-data-table', array('id' => 'report-eventlist-table'));
          $html .= html_writer::end_div();
  
          $html .= $this->output->footer();
          return $html;
      }
code_tokens: public function render_event_list ( $ form , $ tabledata ) { global $ PAGE ; $ title = get_string ( 'pluginname' , 'report_eventlist' ) ; // Header. $ html = $ this -> output -> header ( ) ; $ html .= $ this -> output -> heading ( $ title ) ; // Form. ob_start ( ) ; $ form -> display ( ) ; $ html .= ob_get_contents ( ) ; ob_end_clean ( ) ; $ PAGE -> requires -> yui_module ( 'moodle-report_eventlist-eventfilter' , 'Y.M.report_eventlist.EventFilter.init' , array ( array ( 'tabledata' => $ tabledata ) ) ) ; $ PAGE -> requires -> strings_for_js ( array ( 'eventname' , 'component' , 'action' , 'crud' , 'edulevel' , 'affectedtable' , 'dname' , 'legacyevent' , 'since' ) , 'report_eventlist' ) ; $ html .= html_writer :: start_div ( 'report-eventlist-data-table' , array ( 'id' => 'report-eventlist-table' ) ) ; $ html .= html_writer :: end_div ( ) ; $ html .= $ this -> output -> footer ( ) ; return $ html ; }
docstring: Renders the event list page with filter form and datatable.
  
  @param eventfilter_form $form Event filter form.
  @param array $tabledata An array of event data to be used by the datatable.
  @return string HTML to be displayed.
docstring_tokens: Renders the event list page with filter form and datatable .