June 2017
Beginner to intermediate
368 pages
8h 31m
English
Expand the /customsql folder, and you will notice that a report plugin follows the general Moodle plugin structure:

The full details are given in the developer documentation at https://docs.moodle.org/dev/Reports. The /settings.php script adds a link to the report to the site administration menu:
$ADMIN->add('reports', new admin_externalpage('report_customsql', get_string('pluginname', 'report_customsql'), new moodle_url('/report/customsql/index.php'), 'report/customsql:view'));
The /index.php script is the report itself. As this is a more complex report, the report is displayed to the user via the /view.php script. ...
Read now
Unlock full access