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.

Differences Between: [Versions 310 and 401] [Versions 39 and 401] [Versions 401 and 403]

Loglive report renderable class.

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

Defines 1 class

report_loglive_renderable:: (8 methods):
  __construct()
  get_readers()
  setup_table()
  setup_table_ajax()
  setup_filters()
  set_refresh_rate()
  get_refresh_rate()
  get_table()


Class: report_loglive_renderable  - X-Ref

Report loglive renderable class.

__construct($logreader = "", $course = 0, $url = "", $date = 0, $page = 0, $perpage = 100,$order = "timecreated DESC")   X-Ref
Constructor.

param: string $logreader (optional)reader pluginname from which logs will be fetched.
param: stdClass|int $course (optional) course record or id
param: moodle_url|string $url (optional) page url.
param: int $date date (optional) from which records will be fetched.
param: int $page (optional) page number.
param: int $perpage (optional) number of records to show per page.
param: string $order (optional) sortorder of fetched records

get_readers($nameonly = false)   X-Ref
Get a list of enabled sql_reader objects/name

param: bool $nameonly if true only reader names will be returned.
return: array core\log\sql_reader object or name.

setup_table()   X-Ref
Setup table log.


setup_table_ajax()   X-Ref
Setup table log for ajax output.


setup_filters()   X-Ref
Setup filters

return: stdClass filters

set_refresh_rate()   X-Ref
Set refresh rate of the live updates.


get_refresh_rate()   X-Ref
Get refresh rate of the live updates.


get_table($ajax = false)   X-Ref
Setup table and return it.

param: bool $ajax If set to true report_loglive_table_log_ajax is set instead of report_loglive_table_log.
return: report_loglive_table_log|report_loglive_table_log_ajax table object