|
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.
|
| 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 |
|
|