Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
scormreport_graphs\report Class Reference

Main class to control the graphs reporting. More...

Inheritance diagram for scormreport_graphs\report:
mod_scorm\report

Public Member Functions

 canview ($contextmodule)
 allows the plugin to control who can see this plugin.
 
 display ($scorm, $cm, $course, $download)
 Displays the full report.
 

Public Attributes

const BANDS = 11
 Number of bars.
 
const BANDWIDTH = 10
 Range of each bar.
 

Protected Member Functions

 generate_delete_selected_button ()
 Generates an action button that deletes the selected attempts.
 
 generate_master_checkbox ()
 Generates a checkbox that can be added to header tables to select/deselect all quiz attempts.
 
 generate_row_checkbox (string $name, string $value)
 Generates a checkbox for a row in the attempts table.
 
 get_data ($scoid, $allowedlistsql)
 Get the data for the report.
 

Detailed Description

Main class to control the graphs reporting.

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

Member Function Documentation

◆ canview()

mod_scorm\report::canview ( $contextmodule)
inherited

allows the plugin to control who can see this plugin.

Return values
boolean

◆ display()

scormreport_graphs\report::display ( $scorm,
$cm,
$course,
$download )

Displays the full report.

Parameters
stdClass$scormfull SCORM object
stdClass$cm- full course_module object
stdClass$course- full course object
string$download- type of download being requested
Return values
void

Reimplemented from mod_scorm\report.

◆ generate_master_checkbox()

mod_scorm\report::generate_master_checkbox ( )
protectedinherited

Generates a checkbox that can be added to header tables to select/deselect all quiz attempts.

Return values
string

◆ generate_row_checkbox()

mod_scorm\report::generate_row_checkbox ( string $name,
string $value )
protectedinherited

Generates a checkbox for a row in the attempts table.

Parameters
string$nameThe checkbox's name attribute.
string$valueThe checkbox's value.
Return values
string

◆ get_data()

scormreport_graphs\report::get_data ( $scoid,
$allowedlistsql )
protected

Get the data for the report.

Parameters
int$scoidThe sco ID.
array$allowedlistThe SQL and params to get the userlist.
Return values
arrayof data indexed per bar.

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