Report loglive renderable class.
More...
|
| __construct ($logreader="", $course=0, $url="", $date=0, $page=0, $perpage=100, $order="timecreated DESC") |
| Constructor.
|
|
| get_readers ($nameonly=false) |
| Get a list of enabled sql_reader objects/name.
|
|
| get_refresh_rate () |
| Get refresh rate of the live updates.
|
|
| get_table ($ajax=false) |
| Setup table and return it.
|
|
|
stdClass | $course |
| course record
|
|
int | $date |
| selected date from which records should be displayed
|
|
int | $groupid |
| group id
|
|
string | $order |
| order to sort
|
|
int | $page |
| page number
|
|
int | $perpage |
| perpage records to show
|
|
string | $selectedlogreader = null |
| selected log reader pluginname
|
|
report_loglive_table_log | $tablelog |
| table log which will be used for rendering logs
|
|
moodle_url | $url |
| url of report page
|
|
int const | CUTOFF = 3600 |
| number of seconds to show logs from, by default.
|
|
|
| set_refresh_rate () |
| Set refresh rate of the live updates.
|
|
| setup_filters () |
| Setup filters.
|
|
| setup_table () |
| Setup table log.
|
|
| setup_table_ajax () |
| Setup table log for ajax output.
|
|
|
core log manager | $logmanager |
| log manager
|
|
int | $refresh = 60 |
| refresh rate in seconds
|
|
Report loglive renderable class.
- Since
- Moodle 2.7
- Copyright
- 2014 onwards Ankit Agarwal ankit.nosp@m..agr.nosp@m.r@gma.nosp@m.il.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
report_loglive_renderable::__construct |
( |
| $logreader = "", |
|
|
| $course = 0, |
|
|
| $url = "", |
|
|
| $date = 0, |
|
|
| $page = 0, |
|
|
| $perpage = 100, |
|
|
| $order = "timecreated DESC" ) |
Constructor.
- Parameters
-
string | $logreader | (optional)reader pluginname from which logs will be fetched. |
stdClass | int | $course | (optional) course record or id |
moodle_url | string | $url | (optional) page url. |
int | $date | date (optional) from which records will be fetched. |
int | $page | (optional) page number. |
int | $perpage | (optional) number of records to show per page. |
string | $order | (optional) sortorder of fetched records |
◆ get_readers()
report_loglive_renderable::get_readers |
( |
| $nameonly = false | ) |
|
Get a list of enabled sql_reader objects/name.
- Parameters
-
bool | $nameonly | if true only reader names will be returned. |
- Return values
-
◆ get_table()
report_loglive_renderable::get_table |
( |
| $ajax = false | ) |
|
Setup table and return it.
- Parameters
-
- Return values
-
report_loglive_table_log|report_loglive_table_log_ajax | table object |
◆ setup_filters()
report_loglive_renderable::setup_filters |
( |
| ) |
|
|
protected |
Setup filters.
- Return values
-
The documentation for this class was generated from the following file:
- report/loglive/classes/renderable.php