Differences Between: [Versions 310 and 402] [Versions 310 and 403]
Base lib class for singleview functionality.
Copyright: | 2014 Moodle Pty Ltd (http://moodle.com) |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 113 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 1 time |
Includes or requires: | 0 files |
gradereport_singleview:: (5 methods):
valid_screens()
process_data()
process_action()
__construct()
output()
Class: gradereport_singleview - X-Ref
This class is the main class that must be implemented by a grade report plugin.valid_screens() X-Ref |
Return the list of valid screens, used to validate the input. return: array List of screens. |
process_data($data) X-Ref |
Process data from a form submission. Delegated to the current screen. param: array $data The data from the form return: array List of warnings |
process_action($target, $action) X-Ref |
Unused - abstract function declared in the parent class. param: string $target param: string $action |
__construct($courseid, $gpr, $context, $itemtype, $itemid, $unused = null) X-Ref |
Constructor for this report. Creates the appropriate screen class based on itemtype. param: int $courseid The course id. param: object $gpr grade plugin return tracking object param: context_course $context param: string $itemtype Should be user, select or grade param: int $itemid The id of the user or grade item param: string $unused Used to be group id but that was removed and this is now unused. |
output() X-Ref |
Build the html for the screen. return: string HTML to display |