Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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