|
By dservos:
CONTRIB-497
* Added flare libbary to repo as it is needed to build the flash front end. Lib is located at /grade/report/visual/flare_visualization/flare/. For more information see http://flare.prefuse.org/
* Added more visualizations.
* Added settings/preferences page for the report.
* Added printable version.
* Added more documentation.
* Added README.txt
* Cleaned up code.
* Fixed a bunch of small bugs.
|
| 59 |
$context = get_context_instance(CONTEXT_COURSE, $course->id); |
$context = get_context_instance(CONTEXT_COURSE, $course->id); |
| 60 |
require_capability('gradereport/visual:view', $context); |
require_capability('gradereport/visual:view', $context); |
| 61 |
|
|
|
error_reporting(0); |
|
|
|
|
| 62 |
/// get tracking object |
/// get tracking object |
| 63 |
$gpr = new grade_plugin_return(array('type'=>'report', 'plugin'=>'visual', 'courseid'=>$courseid)); |
$gpr = new grade_plugin_return(array('type'=>'report', 'plugin'=>'visual', 'courseid'=>$courseid)); |
| 64 |
|
$report = new grade_report_visual($courseid, $gpr, $context, $visid); |
| 65 |
|
|
| 66 |
|
/// Make sure the user is allowed see this visualization |
| 67 |
|
require_capability(grade_report_visual::get_visualization($report->visid, $context)->capability, $context); |
| 68 |
|
|
| 69 |
grade_regrade_final_grades($courseid); |
grade_regrade_final_grades($courseid); |
| 70 |
|
|
| 71 |
|
/// Turn of error reporting as hummans will not be seeing |
| 72 |
|
/// this and it will be read by the front end. Notices and |
| 73 |
|
/// warnings will break the format and stop the |
| 74 |
|
/// front end from working. |
| 75 |
|
error_reporting(0); |
| 76 |
|
|
| 77 |
/// Get report object |
/// Get report object |
|
$report = new grade_report_visual($courseid, $gpr, $context, $visid); |
|
| 78 |
$report->load_users(); |
$report->load_users(); |
| 79 |
$report->harvest_data(); |
$report->harvest_data(); |
| 80 |
$report->report_data(); |
$report->report_data(); |