Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.