Differences Between: [Versions 310 and 400] [Versions 39 and 400] [Versions 400 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 |
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 return: array core\log\sql_reader object or name. param: bool $nameonly if true only reader names will be returned. |
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. return: report_loglive_table_log|report_loglive_table_log_ajax table object param: bool $ajax If set to true report_loglive_table_log_ajax is set instead of report_loglive_table_log. |