Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Loglive report renderer.

Copyright: 2014 onwards Ankit Agarwal <ankit.agrr@gmail.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 118 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

report_loglive_renderer:: (5 methods):
  render_report_loglive_renderable()
  render_report_loglive()
  reader_selector()
  toggle_liveupdate_button()
  render_table()


Class: report_loglive_renderer  - X-Ref

Report log renderer's for printing reports.

render_report_loglive_renderable(report_loglive_renderable $reportloglive)   X-Ref
This method should never be manually called, it should only be called by process.
Please call the render method instead.

param: report_loglive_renderable $reportloglive
return: string

render_report_loglive(report_loglive_renderable $reportloglive)   X-Ref
Return html to render the loglive page..

param: report_loglive_renderable $reportloglive object of report_log.
return: string html used to render the page;

reader_selector(report_loglive_renderable $reportloglive)   X-Ref
Prints/return reader selector

param: report_loglive_renderable $reportloglive log report.
return: string Returns rendered widget

toggle_liveupdate_button(report_loglive_renderable $reportloglive)   X-Ref
Prints a button to update/resume live updates.

param: report_loglive_renderable $reportloglive log report.
return: string Returns rendered widget

render_table(report_loglive_table_log $table, $perpage)   X-Ref
Get the html for the table.

param: report_loglive_table_log $table table object.
param: int $perpage entries to display perpage.
return: string table html