[moodle] / contrib / plugins / grade / report / visual / data.php Repository:

Diff of /contrib/plugins/grade/report/visual/data.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3, Sat Aug 2 12:19:15 2008 WST revision 1.4, Mon Aug 18 11:58:11 2008 WST

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.

# Line 59  Line 59 
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();

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.7