Report log renderable class.
More...
|
| __construct ($logreader="", $course=0, $userid=0, $modid=0, $action="", $groupid=0, $edulevel=-1, $showcourses=false, $showusers=false, $showreport=true, $showselectorform=true, $url="", $date=0, $logformat='showashtml', $page=0, $perpage=100, $order="timecreated ASC", $origin='') |
| Constructor.
|
|
| download () |
| Download logs in specified format.
|
|
| get_actions () |
| Return list of actions for log reader.
|
|
| get_activities_list () |
| Helper function to return list of activities to show in selection filter.
|
|
| get_course_list () |
| Return list of courses to show in selector.
|
|
| get_date_options () |
| Return list of date options.
|
|
| get_edulevel_options () |
| Return list of edulevel.
|
|
| get_group_list () |
| Return list of groups that are used in this course.
|
|
| get_origin_options () |
| Return list of components to show in selector.
|
|
| get_readers ($nameonly=false) |
| Get a list of enabled sql_reader objects/name.
|
|
| get_selected_group () |
| Helper function to get selected group.
|
|
| get_selected_user_fullname () |
| Return selected user fullname.
|
|
| get_user_list () |
| Return list of users.
|
|
| setup_table () |
| Setup table log.
|
|
|
string | $action |
| selected action filter
|
|
stdClass | $course |
| course record
|
|
int | $date |
| selected date from which records should be displayed
|
|
int | $edulevel |
| educational level
|
|
int | $groupid |
| group id
|
|
array | $grouplist |
| group ids
|
|
string | $logformat |
| selected log format
|
|
int | $modid |
| selected moduleid
|
|
string | $order |
| order to sort
|
|
string | $origin |
| origin to filter event origin
|
|
int | $page |
| page number
|
|
int | $perpage |
| perpage records to show
|
|
string | $selectedlogreader = null |
| selected log reader pluginname
|
|
bool | $showcourses |
| show courses
|
|
bool | $showreport |
| show report
|
|
bool | $showselectorform |
| show selector form
|
|
bool | $showusers |
| show users
|
|
table_log | $tablelog |
| table log which will be used for rendering logs
|
|
moodle_url | $url |
| url of report page
|
|
int | $userid |
| selected user id for which logs are displayed
|
|
◆ __construct()
report_log_renderable::__construct |
( |
| $logreader = "", |
|
|
| $course = 0, |
|
|
| $userid = 0, |
|
|
| $modid = 0, |
|
|
| $action = "", |
|
|
| $groupid = 0, |
|
|
| $edulevel = -1, |
|
|
| $showcourses = false, |
|
|
| $showusers = false, |
|
|
| $showreport = true, |
|
|
| $showselectorform = true, |
|
|
| $url = "", |
|
|
| $date = 0, |
|
|
| $logformat = 'showashtml', |
|
|
| $page = 0, |
|
|
| $perpage = 100, |
|
|
| $order = "timecreated ASC", |
|
|
| $origin = '' ) |
Constructor.
- Parameters
-
string | $logreader | (optional)reader pluginname from which logs will be fetched. |
stdClass | int | $course | (optional) course record or id |
int | $userid | (optional) id of user to filter records for. |
int | string | $modid | (optional) module id or site_errors for filtering errors. |
string | $action | (optional) action name to filter. |
int | $groupid | (optional) groupid of user. |
int | $edulevel | (optional) educational level. |
bool | $showcourses | (optional) show courses. |
bool | $showusers | (optional) show users. |
bool | $showreport | (optional) show report. |
bool | $showselectorform | (optional) show selector form. |
moodle_url | string | $url | (optional) page url. |
int | $date | date (optional) timestamp of start of the day for which logs will be displayed. |
string | $logformat | log format. |
int | $page | (optional) page number. |
int | $perpage | (optional) number of records to show per page. |
string | $order | (optional) sortorder of fetched records |
◆ get_actions()
report_log_renderable::get_actions |
( |
| ) |
|
Return list of actions for log reader.
- Todo
- MDL-44528 Get list from log_store.
- Return values
-
array | list of action options. |
◆ get_activities_list()
report_log_renderable::get_activities_list |
( |
| ) |
|
Helper function to return list of activities to show in selection filter.
- Return values
-
◆ get_course_list()
report_log_renderable::get_course_list |
( |
| ) |
|
Return list of courses to show in selector.
- Return values
-
◆ get_date_options()
report_log_renderable::get_date_options |
( |
| ) |
|
Return list of date options.
- Return values
-
◆ get_edulevel_options()
report_log_renderable::get_edulevel_options |
( |
| ) |
|
Return list of edulevel.
- Todo
- MDL-44528 Get list from log_store.
- Return values
-
◆ get_group_list()
report_log_renderable::get_group_list |
( |
| ) |
|
Return list of groups that are used in this course.
This is done when groups are used in the course and the user is allowed to see all groups or groups are visible anyway. If groups are used but the mode is separate groups and the user is not allowed to see all groups, the list contains the groups only, where the user is member. If the course uses no groups, the list is empty.
- Return values
-
◆ get_origin_options()
report_log_renderable::get_origin_options |
( |
| ) |
|
Return list of components to show in selector.
- Return values
-
◆ get_readers()
report_log_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_selected_group()
report_log_renderable::get_selected_group |
( |
| ) |
|
Helper function to get selected group.
- Return values
-
◆ get_selected_user_fullname()
report_log_renderable::get_selected_user_fullname |
( |
| ) |
|
Return selected user fullname.
- Return values
-
◆ get_user_list()
report_log_renderable::get_user_list |
( |
| ) |
|
Return list of users.
- Return values
-
◆ $grouplist
array report_log_renderable::$grouplist |
group ids
- Deprecated
- since Moodle 4.4 - please do not use this public property
- Todo
- MDL-81155 remove this property as it is not used anymore.
The documentation for this class was generated from the following file: