AMOS BEGIN
MOV [pluginpagetype,coursereport_stats],[pluginpagetype,report_stats]
MOV [stats:view,coursereport_stats],[stats:view,report_stats]
AMOS END
AMOS BEGIN
MOV [participation:view,coursereport_participation],[participation:view,report_participation]
MOV [pluginpagetype,coursereport_participation],[pluginpagetype,report_participation]
MOV [pluginname,coursereport_participation],[pluginname,report_participation]
AMOS END
AMOS BEGIN
MOV [pluginname,coursereport_progress],[pluginname,report_progress]
MOV [pluginpagetype,coursereport_progress],[pluginpagetype,report_progress]
MOV [progress:view,coursereport_progress],[progress:view,report_progress]
AMOS END
AMOS BEGIN
MOV [outline:view,coursereport_outline],[outline:view,report_outline]
MOV [pluginpagetype,coursereport_outline],[pluginpagetype,report_outline]
MOV [pluginname,coursereport_outline],[pluginname,report_outline]
AMOS END
New PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN + fixing of hopefully all current incorrect parameter types. This should help with diagnosing of incorrectly named 3rd party plugins too.
Ideally all reports should use their pluginname in the navigation tree.
In this particular case, the patch fixes two issues: using the
capability name as the report title in the navigation and incorrect
pluginname defined for coursereport_log.
This commit:
a) moves modinfo code into new library modinfolib.php
b) uses classes instead of stdClass objects, allowing a huge amount of documentation (and IDE completion)
c) adds hooks so that plugins other than forum can display messages like forum's 'unread', and plugins other than label can display html (apart from/as well as their view.php link) on the course view page
d) removes current hacks for forum and label (mainly in print_section but also across the code), replacing with new 'content' and similar variables [this is the reason for the changes in blocks, etc]
e) reduces size of modinfo in database (only when rebuilt) by excluding empty fields
The change is intended to be backward compatible and does not affect the format of modinfo in database.
Major tasks undertaken in this patch:
* New format_text argument, overflowdiv.
* New page layout Report.
* Review of all format_text calls.
* Added support for the report layout to all themes.
* Changed forum post display from tables to divs.