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

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

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

revision 1.1, Mon Jun 16 01:36:20 2008 WST revision 1.2, Tue Jun 17 18:50:38 2008 WST

By dservos:

CONTRIB-496 Cleaned up code, added more documentation and added the copy right notice to the new files. Also made the statistics classes be loaded in dynamically so new statistics can be added to the report with out touching any of the plug-ins code.

# Line 1  Line 1 
1  <?php  <?php
2    ///////////////////////////////////////////////////////////////////////////
3    //                                                                       //
4    // NOTICE OF COPYRIGHT                                                   //
5    //                                                                       //
6    // Moodle - Modular Object-Oriented Dynamic Learning Environment         //
7    //          http://moodle.org                                            //
8    //                                                                       //
9    // Copyright (C) 1999 onwards  Martin Dougiamas  http://moodle.com       //
10    //                                                                       //
11    // This program is free software; you can redistribute it and/or modify  //
12    // it under the terms of the GNU General Public License as published by  //
13    // the Free Software Foundation; either version 2 of the License, or     //
14    // (at your option) any later version.                                   //
15    //                                                                       //
16    // This program is distributed in the hope that it will be useful,       //
17    // but WITHOUT ANY WARRANTY; without even the implied warranty of        //
18    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         //
19    // GNU General Public License for more details:                          //
20    //                                                                       //
21    //          http://www.gnu.org/copyleft/gpl.html                         //
22    //                                                                       //
23    ///////////////////////////////////////////////////////////////////////////
24    
25        /**
26         * Sets up the tabs for the report/stats plug-in and displays them.
27         * @package gradebook
28         */
29    
30      $row = $tabs = array();      $row = $tabs = array();
31      $tabcontext = get_context_instance(CONTEXT_COURSE, $COURSE->id);      $tabcontext = get_context_instance(CONTEXT_COURSE, $COURSE->id);
32      $row[] = new tabobject('statsreport',      $row[] = new tabobject('statsreport',

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.7