Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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.

return: string
param: report_loglive_renderable $reportloglive

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

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

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

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

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

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

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

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