Moodle has a simple method of including new course reports. All that is required is a subfolder in the ./course/reports
folder and a file called mod.php
. This file (mod.php
) contains a fragment of HTML/PHP code that gets included in the course report list. Stay tuned! We will cover the specifics of how to do this in an upcoming section of this chapter. Typically the mod.php
file will generate a link to another PHP file, normally index.php
. We might also want to use some of our other tricks from past chapters. All of the common elements that we have studied in the past, such as language files, version.php
, and access.php
all apply to report modules. We will create a sample report, the non-participants report, which will use all of these elements. In the next section, we start to dig into this new report.
For the official developers' documentation for course reports, see http://docs.moodle.org/en/Development:Course_Report_Plugins.