Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / grade / edit / outcome / tabs.php
blob7352162e4db1b855b76f2301de919ebc5d36fa37
1 <?php // $Id$
3 ///////////////////////////////////////////////////////////////////////////
4 // //
5 // NOTICE OF COPYRIGHT //
6 // //
7 // Moodle - Modular Object-Oriented Dynamic Learning Environment //
8 // http://moodle.com //
9 // //
10 // Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
11 // //
12 // This program is free software; you can redistribute it and/or modify //
13 // it under the terms of the GNU General Public License as published by //
14 // the Free Software Foundation; either version 2 of the License, or //
15 // (at your option) any later version. //
16 // //
17 // This program is distributed in the hope that it will be useful, //
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
20 // GNU General Public License for more details: //
21 // //
22 // http://www.gnu.org/copyleft/gpl.html //
23 // //
24 ///////////////////////////////////////////////////////////////////////////
25 $row = $tabs = array();
27 $coursecontext = get_context_instance(CONTEXT_COURSE, $courseid);
29 $row[] = new tabobject('courseoutcomes',
30 $CFG->wwwroot.'/grade/edit/outcome/course.php?id='.$courseid,
31 get_string('outcomescourse', 'grades'));
33 if (has_capability('moodle/grade:manage', $context)) {
34 $row[] = new tabobject('outcomes',
35 $CFG->wwwroot.'/grade/edit/outcome/index.php?id='.$courseid,
36 get_string('editoutcomes', 'grades'));
39 $tabs[] = $row;
41 echo '<div class="outcomedisplay">';
42 print_tabs($tabs, $currenttab);
43 echo '</div>';