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

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

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

revision 1.3, Thu Jul 24 15:31:44 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 25  Line 25 
25    
26  $row = $tabs = array();  $row = $tabs = array();
27      $tabcontext = get_context_instance(CONTEXT_COURSE, $COURSE->id);      $tabcontext = get_context_instance(CONTEXT_COURSE, $COURSE->id);
28    
29    
30        if(!isset($visid)){
31            $visid = optional_param('visid');
32        }
33    
34    
35      $row[] = new tabobject('visualreport',      $row[] = new tabobject('visualreport',
36                             $CFG->wwwroot.'/grade/report/visual/index.php?id='.$courseid,                             $CFG->wwwroot.'/grade/report/visual/index.php?id='.$courseid.'&visid='.$visid,
37                             get_string('modulename', 'gradereport_visual'));                             get_string('modulename', 'gradereport_visual'));
38    
39      if (has_capability('moodle/grade:manage',$tabcontext ) ||      if (has_capability('moodle/grade:manage',$tabcontext ) ||
40          has_capability('moodle/grade:edit', $tabcontext) ||          has_capability('moodle/grade:edit', $tabcontext) ||
41          has_capability('gradereport/visual:view', $tabcontext)) {          has_capability('gradereport/visual:view', $tabcontext)) {
42          $row[] = new tabobject('preferences',          $row[] = new tabobject('preferences',
43                                 $CFG->wwwroot.'/grade/report/visual/preferences.php?id='.$courseid,                                 $CFG->wwwroot.'/grade/report/visual/preferences.php?id='.$courseid.'&visid='.$visid,
44                                 get_string('myreportpreferences', 'grades'));                                 get_string('myreportpreferences', 'grades'));
45      }      }
46    

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

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.7