Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Model logs table class.

Copyright: 2017 David Monllao {@link http://www.davidmonllao.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 217 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

model_logs:: (10 methods):
  __construct()
  col_version()
  col_evaluationmode()
  col_time()
  col_indicators()
  col_timesplitting()
  col_accuracy()
  col_info()
  col_usermodified()
  query_db()


Class: model_logs  - X-Ref

Model logs table class.

__construct($uniqueid, $model)   X-Ref
Sets up the table_log parameters.

param: string $uniqueid unique id of form.
param: \core_analytics\model $model

col_version($log)   X-Ref
Generate the version column.

return: string HTML for the version column
param: \stdClass $log log data.

col_evaluationmode($log)   X-Ref
Generate the evaluation mode column.

return: string HTML for the evaluationmode column
param: \stdClass $log log data.

col_time($log)   X-Ref
Generate the time column.

return: string HTML for the time column
param: \stdClass $log log data.

col_indicators($log)   X-Ref
Generate the indicators column.

return: string HTML for the indicators column
param: \stdClass $log log data.

col_timesplitting($log)   X-Ref
Generate the context column.

return: string HTML for the context column
param: \stdClass $log log data.

col_accuracy($log)   X-Ref
Generate the accuracy column.

return: string HTML for the accuracy column
param: \stdClass $log log data.

col_info($log)   X-Ref
Generate the info column.

return: string HTML for the score column
param: \stdClass $log log data.

col_usermodified($log)   X-Ref
Generate the usermodified column.

return: string HTML for the usermodified column
param: \stdClass $log log data.

query_db($pagesize, $useinitialsbar = true)   X-Ref
Query the logs table. Store results in the object for use by build_table.

param: int $pagesize size of page for paginated displayed table.
param: bool $useinitialsbar do you want to use the initials bar.