Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is 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.