Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250605) (9223e346c3e)
tool_analytics\output\model_logs Class Reference

Model logs table class. More...

Inheritance diagram for tool_analytics\output\model_logs:

Public Member Functions

 __construct ($uniqueid, $model)
 Sets up the table_log parameters.
 
 col_accuracy ($log)
 Generate the accuracy column.
 
 col_evaluationmode ($log)
 Generate the evaluation mode column.
 
 col_indicators ($log)
 Generate the indicators column.
 
 col_info ($log)
 Generate the info column.
 
 col_time ($log)
 Generate the time column.
 
 col_timesplitting ($log)
 Generate the context column.
 
 col_usermodified ($log)
 Generate the usermodified column.
 
 col_version ($log)
 Generate the version column.
 
 query_db ($pagesize, $useinitialsbar=true)
 Query the logs table.
 

Protected Attributes

string false $evaluationmode = false
 
core_analytics model $model = null
 

Detailed Description

Model logs table class.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

tool_analytics\output\model_logs::__construct ( $uniqueid,
$model )

Sets up the table_log parameters.

Parameters
string$uniqueidunique id of form.
core_analytics::model$model

Member Function Documentation

◆ col_accuracy()

tool_analytics\output\model_logs::col_accuracy ( $log)

Generate the accuracy column.

Parameters
stdClass$loglog data.
Return values
stringHTML for the accuracy column

◆ col_evaluationmode()

tool_analytics\output\model_logs::col_evaluationmode ( $log)

Generate the evaluation mode column.

Parameters
stdClass$loglog data.
Return values
stringHTML for the evaluationmode column

◆ col_indicators()

tool_analytics\output\model_logs::col_indicators ( $log)

Generate the indicators column.

Parameters
stdClass$loglog data.
Return values
stringHTML for the indicators column

◆ col_info()

tool_analytics\output\model_logs::col_info ( $log)

Generate the info column.

Parameters
stdClass$loglog data.
Return values
stringHTML for the score column

◆ col_time()

tool_analytics\output\model_logs::col_time ( $log)

Generate the time column.

Parameters
stdClass$loglog data.
Return values
stringHTML for the time column

◆ col_timesplitting()

tool_analytics\output\model_logs::col_timesplitting ( $log)

Generate the context column.

Parameters
stdClass$loglog data.
Return values
stringHTML for the context column

◆ col_usermodified()

tool_analytics\output\model_logs::col_usermodified ( $log)

Generate the usermodified column.

Parameters
stdClass$loglog data.
Return values
stringHTML for the usermodified column

◆ col_version()

tool_analytics\output\model_logs::col_version ( $log)

Generate the version column.

Parameters
stdClass$loglog data.
Return values
stringHTML for the version column

◆ query_db()

tool_analytics\output\model_logs::query_db ( $pagesize,
$useinitialsbar = true )

Query the logs table.

Store results in the object for use by build_table.

Parameters
int$pagesizesize of page for paginated displayed table.
bool$useinitialsbardo you want to use the initials bar.

The documentation for this class was generated from the following file: