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. More...
|
|
| download () |
| Download logs in specified format.
|
|
| get_actions () |
| Return list of actions for log reader. More...
|
|
| get_activities_list () |
| Helper function to return list of activities to show in selection filter. More...
|
|
| get_course_list () |
| Return list of courses to show in selector. More...
|
|
| get_date_options () |
| Return list of date options. More...
|
|
| get_edulevel_options () |
| Return list of edulevel. More...
|
|
| get_group_list () |
| Return list of groups. More...
|
|
| get_origin_options () |
| Return list of components to show in selector. More...
|
|
| get_readers ($nameonly=false) |
| Get a list of enabled sql_reader objects/name. More...
|
|
| get_selected_group () |
| Helper function to get selected group. More...
|
|
| get_selected_user_fullname () |
| Return selected user fullname. More...
|
|
| get_user_list () |
| Return list of users. More...
|
|
| setup_table () |
| Setup table log.
|
|
◆ __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.
- 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
-
array | core\log\sql_reader object or name. |
◆ 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
-
The documentation for this class was generated from the following file: