Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
25  mod/lti/ajax.php
... ...
@@ -1,4 +1,27 @@
1 1
 <?php
  2
+// This file is part of Moodle - http://moodle.org/
  3
+//
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
  8
+//
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
  13
+//
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16
+
  17
+/**
  18
+ * MRTODO: Brief description of this file
  19
+ *
  20
+ * @package    mod
  21
+ * @subpackage xml
  22
+ * @copyright  2011 onwards MRTODO
  23
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  24
+ */
2 25
 
3 26
 require_once(dirname(__FILE__) . "/../../config.php");
4 27
 require_once($CFG->dirroot . '/mod/lti/locallib.php');
@@ -28,4 +51,4 @@
28 51
 
29 52
 echo json_encode($response);
30 53
 
31  
-die;
  54
+die;
46  mod/lti/backup/moodle2/backup_lti_activity_task.class.php
... ...
@@ -1,4 +1,19 @@
1 1
 <?php
  2
+// This file is part of Moodle - http://moodle.org/
  3
+//
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
  8
+//
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
  13
+//
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16
+//
2 17
 // This file is part of BasicLTI4Moodle
3 18
 //
4 19
 // BasicLTI4Moodle is an IMS BasicLTI (Basic Learning Tools for Interoperability)
@@ -16,34 +31,19 @@
16 31
 // BasicLTI4Moodle is copyright 2009 by Marc Alier Forment, Jordi Piguillem and Nikolas Galanis
17 32
 // of the Universitat Politecnica de Catalunya http://www.upc.edu
18 33
 // Contact info: Marc Alier Forment granludo @ gmail.com or marc.alier @ upc.edu
19  
-//
20  
-// Moodle is free software: you can redistribute it and/or modify
21  
-// it under the terms of the GNU General Public License as published by
22  
-// the Free Software Foundation, either version 3 of the License, or
23  
-// (at your option) any later version.
24  
-//
25  
-// Moodle is distributed in the hope that it will be useful,
26  
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
27  
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28  
-// GNU General Public License for more details.
29  
-//
30  
-// You should have received a copy of the GNU General Public License
31  
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
32  
-
33 34
 
34 35
 /**
35 36
  * This file contains the lti module backup class
36 37
  *
37  
- * @package lti
38  
- * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
  38
+ * @package    mod
  39
+ * @subpackage lti
  40
+ * @copyright  2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
39 41
  *  marc.alier@upc.edu
40  
- * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu
41  
- *
42  
- * @author Marc Alier
43  
- * @author Jordi Piguillem
44  
- * @author Nikolas Galanis
45  
- *
46  
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  42
+ * @copyright  2009 Universitat Politecnica de Catalunya http://www.upc.edu
  43
+ * @author     Marc Alier
  44
+ * @author     Jordi Piguillem
  45
+ * @author     Nikolas Galanis
  46
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
47 47
  */
48 48
 
49 49
 require_once($CFG->dirroot . '/mod/lti/backup/moodle2/backup_lti_stepslib.php');
49  mod/lti/backup/moodle2/backup_lti_stepslib.php
... ...
@@ -1,4 +1,19 @@
1 1
 <?php
  2
+// This file is part of Moodle - http://moodle.org/
  3
+//
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
  8
+//
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
  13
+//
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16
+//
2 17
 // This file is part of BasicLTI4Moodle
3 18
 //
4 19
 // BasicLTI4Moodle is an IMS BasicLTI (Basic Learning Tools for Interoperability)
@@ -16,38 +31,20 @@
16 31
 // BasicLTI4Moodle is copyright 2009 by Marc Alier Forment, Jordi Piguillem and Nikolas Galanis
17 32
 // of the Universitat Politecnica de Catalunya http://www.upc.edu
18 33
 // Contact info: Marc Alier Forment granludo @ gmail.com or marc.alier @ upc.edu
19  
-//
20  
-// Moodle is free software: you can redistribute it and/or modify
21  
-// it under the terms of the GNU General Public License as published by
22  
-// the Free Software Foundation, either version 3 of the License, or
23  
-// (at your option) any later version.
24  
-//
25  
-// Moodle is distributed in the hope that it will be useful,
26  
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
27  
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28  
-// GNU General Public License for more details.
29  
-//
30  
-// You should have received a copy of the GNU General Public License
31  
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
32 34
 
33 35
 /**
34 36
  * This file contains all the backup steps that will be used
35 37
  * by the backup_lti_activity_task
36 38
  *
37  
- * @package lti
38  
- * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
  39
+ * @package    mod
  40
+ * @subpackage lti
  41
+ * @copyright  2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
39 42
  *  marc.alier@upc.edu
40  
- * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu
41  
- *
42  
- * @author Marc Alier
43  
- * @author Jordi Piguillem
44  
- * @author Nikolas Galanis
45  
- *
46  
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
47  
- */
48  
-
49  
-/**
50  
- * Define all the backup steps that will be used by the backup_lti_activity_task
  43
+ * @copyright  2009 Universitat Politecnica de Catalunya http://www.upc.edu
  44
+ * @author     Marc Alier
  45
+ * @author     Jordi Piguillem
  46
+ * @author     Nikolas Galanis
  47
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
51 48
  */
52 49
 
53 50
 /**
48  mod/lti/backup/moodle2/restore_lti_activity_task.class.php
... ...
@@ -1,4 +1,19 @@
1 1
 <?php
  2
+// This file is part of Moodle - http://moodle.org/
  3
+//
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
  8
+//
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
  13
+//
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16
+//
2 17
 // This file is part of BasicLTI4Moodle
3 18
 //
4 19
 // BasicLTI4Moodle is an IMS BasicLTI (Basic Learning Tools for Interoperability)
@@ -16,34 +31,21 @@
16 31
 // BasicLTI4Moodle is copyright 2009 by Marc Alier Forment, Jordi Piguillem and Nikolas Galanis
17 32
 // of the Universitat Politecnica de Catalunya http://www.upc.edu
18 33
 // Contact info: Marc Alier Forment granludo @ gmail.com or marc.alier @ upc.edu
19  
-//
20  
-// Moodle is free software: you can redistribute it and/or modify
21  
-// it under the terms of the GNU General Public License as published by
22  
-// the Free Software Foundation, either version 3 of the License, or
23  
-// (at your option) any later version.
24  
-//
25  
-// Moodle is distributed in the hope that it will be useful,
26  
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
27  
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28  
-// GNU General Public License for more details.
29  
-//
30  
-// You should have received a copy of the GNU General Public License
31  
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
32 34
 
33 35
 /**
34  
- * This file contains the basicLTI module restore class
  36
+ * This file contains the lti module restore class
35 37
  *
36  
- * @package lti
37  
- * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
  38
+ * @package    mod
  39
+ * @subpackage lti
  40
+ * @copyright  2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
38 41
  *  marc.alier@upc.edu
39  
- * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu
40  
- *
41  
- * @author Marc Alier
42  
- * @author Jordi Piguillem
43  
- * @author Nikolas Galanis
44  
- *
45  
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  42
+ * @copyright  2009 Universitat Politecnica de Catalunya http://www.upc.edu
  43
+ * @author     Marc Alier
  44
+ * @author     Jordi Piguillem
  45
+ * @author     Nikolas Galanis
  46
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
46 47
  */
  48
+
47 49
 defined('MOODLE_INTERNAL') || die();
48 50
 
49 51
 require_once($CFG->dirroot . '/mod/lti/backup/moodle2/restore_lti_stepslib.php'); // Because it exists (must)
52  mod/lti/backup/moodle2/restore_lti_stepslib.php
... ...
@@ -1,4 +1,19 @@
1 1
 <?php
  2
+// This file is part of Moodle - http://moodle.org/
  3
+//
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
  8
+//
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
  13
+//
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16
+//
2 17
 // This file is part of BasicLTI4Moodle
3 18
 //
4 19
 // BasicLTI4Moodle is an IMS BasicLTI (Basic Learning Tools for Interoperability)
@@ -16,39 +31,20 @@
16 31
 // BasicLTI4Moodle is copyright 2009 by Marc Alier Forment, Jordi Piguillem and Nikolas Galanis
17 32
 // of the Universitat Politecnica de Catalunya http://www.upc.edu
18 33
 // Contact info: Marc Alier Forment granludo @ gmail.com or marc.alier @ upc.edu
19  
-//
20  
-// Moodle is free software: you can redistribute it and/or modify
21  
-// it under the terms of the GNU General Public License as published by
22  
-// the Free Software Foundation, either version 3 of the License, or
23  
-// (at your option) any later version.
24  
-//
25  
-// Moodle is distributed in the hope that it will be useful,
26  
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
27  
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28  
-// GNU General Public License for more details.
29  
-//
30  
-// You should have received a copy of the GNU General Public License
31  
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
32  
-
33 34
 
34 35
 /**
35 36
  * This file contains all the restore steps that will be used
36  
- * by the restore_basiclti_activity_task
  37
+ * by the restore_lti_activity_task
37 38
  *
38  
- * @package lti
39  
- * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
  39
+ * @package    mod
  40
+ * @subpackage lti
  41
+ * @copyright  2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
40 42
  *  marc.alier@upc.edu
41  
- * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu
42  
- *
43  
- * @author Marc Alier
44  
- * @author Jordi Piguillem
45  
- * @author Nikolas Galanis
46  
- *
47  
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
48  
- */
49  
-
50  
-/**
51  
- * Define all the restore steps that will be used by the restore_basiclti_activity_task
  43
+ * @copyright  2009 Universitat Politecnica de Catalunya http://www.upc.edu
  44
+ * @author     Marc Alier
  45
+ * @author     Jordi Piguillem
  46
+ * @author     Nikolas Galanis
  47
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
52 48
  */
53 49
 
54 50
 /**
51  mod/lti/basiclti.js
... ...
@@ -1,3 +1,18 @@
  1
+// This file is part of Moodle - http://moodle.org/
  2
+//
  3
+// Moodle is free software: you can redistribute it and/or modify
  4
+// it under the terms of the GNU General Public License as published by
  5
+// the Free Software Foundation, either version 3 of the License, or
  6
+// (at your option) any later version.
  7
+//
  8
+// Moodle is distributed in the hope that it will be useful,
  9
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  10
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11
+// GNU General Public License for more details.
  12
+//
  13
+// You should have received a copy of the GNU General Public License
  14
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  15
+//
1 16
 // This file is part of BasicLTI4Moodle
2 17
 //
3 18
 // BasicLTI4Moodle is an IMS BasicLTI (Basic Learning Tools for Interoperability)
@@ -15,34 +30,20 @@
15 30
 // BasicLTI4Moodle is copyright 2009 by Marc Alier Forment, Jordi Piguillem and Nikolas Galanis
16 31
 // of the Universitat Politecnica de Catalunya http://www.upc.edu
17 32
 // Contact info: Marc Alier Forment granludo @ gmail.com or marc.alier @ upc.edu
18  
-//
19  
-// Moodle is free software: you can redistribute it and/or modify
20  
-// it under the terms of the GNU General Public License as published by
21  
-// the Free Software Foundation, either version 3 of the License, or
22  
-// (at your option) any later version.
23  
-//
24  
-// Moodle is distributed in the hope that it will be useful,
25  
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
26  
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27  
-// GNU General Public License for more details.
28  
-//
29  
-// You should have received a copy of the GNU General Public License
30  
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
31 33
 
32 34
 /**
33  
- * This file contains a library of javasxript functions for the BasicLTI module
  35
+ * This file contains a library of javasxript functions for the lti module
34 36
  *
35  
- * @package lti
36  
- * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
  37
+ * @package    mod
  38
+ * @subpackage lti
  39
+ * @copyright  2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
37 40
  *  marc.alier@upc.edu
38  
- * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu
39  
- *
40  
- * @author Marc Alier
41  
- * @author Jordi Piguillem
42  
- * @author Nikolas Galanis
43  
- * @author Charles Severance
44  
- *
45  
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  41
+ * @copyright  2009 Universitat Politecnica de Catalunya http://www.upc.edu
  42
+ * @author     Marc Alier
  43
+ * @author     Jordi Piguillem
  44
+ * @author     Nikolas Galanis
  45
+ * @author     Charles Severance
  46
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
46 47
  */
47 48
 
48 49
 function basicltiDebugToggle() {
@@ -53,4 +54,4 @@ function basicltiDebugToggle() {
53 54
     else {
54 55
         ele.style.display = 'block';
55 56
     }
56  
-}
  57
+}
52  mod/lti/db/access.php
... ...
@@ -1,45 +1,31 @@
1 1
 <?php
  2
+// This file is part of Moodle - http://moodle.org/
2 3
 //
3  
-// Capability definitions for the lti module.
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
4 8
 //
5  
-// The capabilities are loaded into the database table when the module is
6  
-// installed or updated. Whenever the capability definitions are updated,
7  
-// the module version number should be bumped up.
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
8 13
 //
9  
-// The system has four possible values for a capability:
10  
-// CAP_ALLOW, CAP_PREVENT, CAP_PROHIBIT, and inherit (not set).
11  
-//
12  
-//
13  
-// CAPABILITY NAMING CONVENTION
14  
-//
15  
-// It is important that capability names are unique. The naming convention
16  
-// for capabilities that are specific to modules and blocks is as follows:
17  
-//   [mod/block]/<plugin_name>:<capabilityname>
18  
-//
19  
-// component_name should be the same as the directory name of the mod or block.
20  
-//
21  
-// Core moodle capabilities are defined thus:
22  
-//    moodle/<capabilityclass>:<capabilityname>
23  
-//
24  
-// Examples: mod/forum:viewpost
25  
-//           block/recent_activity:view
26  
-//           moodle/site:deleteuser
27  
-//
28  
-// The variable name for the capability definitions array is $capabilities
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
29 16
 
30 17
 /**
31 18
  * This file contains the capabilities used by the lti module
32 19
  *
33  
- * @package lti
34  
- * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
  20
+ * @package    mod
  21
+ * @subpackage lti
  22
+ * @copyright  2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
35 23
  *  marc.alier@upc.edu
36  
- * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu
37  
- *
38  
- * @author Marc Alier
39  
- * @author Jordi Piguillem
40  
- * @author Nikolas Galanis
41  
- *
42  
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  24
+ * @copyright  2009 Universitat Politecnica de Catalunya http://www.upc.edu
  25
+ * @author     Marc Alier
  26
+ * @author     Jordi Piguillem
  27
+ * @author     Nikolas Galanis
  28
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
43 29
  */
44 30
 
45 31
 $capabilities = array(
2  mod/lti/db/install.xml
@@ -95,4 +95,4 @@
95 95
       </INDEXES>
96 96
     </TABLE>
97 97
   </TABLES>
98  
-</XMLDB>
  98
+</XMLDB>
49  mod/lti/db/upgrade.php
... ...
@@ -1,4 +1,19 @@
1 1
 <?php
  2
+// This file is part of Moodle - http://moodle.org/
  3
+//
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
  8
+//
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
  13
+//
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16
+//
2 17
 // This file is part of BasicLTI4Moodle
3 18
 //
4 19
 // BasicLTI4Moodle is an IMS BasicLTI (Basic Learning Tools for Interoperability)
@@ -16,36 +31,21 @@
16 31
 // BasicLTI4Moodle is copyright 2009 by Marc Alier Forment, Jordi Piguillem and Nikolas Galanis
17 32
 // of the Universitat Politecnica de Catalunya http://www.upc.edu
18 33
 // Contact info: Marc Alier Forment granludo @ gmail.com or marc.alier @ upc.edu
19  
-//
20  
-// Moodle is free software: you can redistribute it and/or modify
21  
-// it under the terms of the GNU General Public License as published by
22  
-// the Free Software Foundation, either version 3 of the License, or
23  
-// (at your option) any later version.
24  
-//
25  
-// Moodle is distributed in the hope that it will be useful,
26  
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
27  
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28  
-// GNU General Public License for more details.
29  
-//
30  
-// You should have received a copy of the GNU General Public License
31  
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
32 34
 
33 35
 /**
34  
- * This file keeps track of upgrades to the basiclti module
  36
+ * This file keeps track of upgrades to the lti module
35 37
  *
36  
- * @package lti
37  
- * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
  38
+ * @package    mod
  39
+ * @subpackage lti
  40
+ * @copyright  2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
38 41
  *  marc.alier@upc.edu
39  
- * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu
40  
- *
41  
- * @author Marc Alier
42  
- * @author Jordi Piguillem
43  
- * @author Nikolas Galanis
44  
- *
45  
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  42
+ * @copyright  2009 Universitat Politecnica de Catalunya http://www.upc.edu
  43
+ * @author     Marc Alier
  44
+ * @author     Jordi Piguillem
  45
+ * @author     Nikolas Galanis
  46
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
46 47
  */
47 48
 
48  
-
49 49
 /**
50 50
  * xmldb_lti_upgrade is the function that upgrades Moodle's
51 51
  * database when is needed
@@ -57,7 +57,6 @@
57 57
  *
58 58
  * @return boolean
59 59
  */
60  
-
61 60
 function xmldb_lti_upgrade($oldversion=0) {
62 61
     global $DB;
63 62
 
47  mod/lti/edit_form.php
... ...
@@ -1,4 +1,19 @@
1 1
 <?php
  2
+// This file is part of Moodle - http://moodle.org/
  3
+//
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
  8
+//
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
  13
+//
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16
+//
2 17
 // This file is part of BasicLTI4Moodle
3 18
 //
4 19
 // BasicLTI4Moodle is an IMS BasicLTI (Basic Learning Tools for Interoperability)
@@ -16,34 +31,20 @@
16 31
 // BasicLTI4Moodle is copyright 2009 by Marc Alier Forment, Jordi Piguillem and Nikolas Galanis
17 32
 // of the Universitat Politecnica de Catalunya http://www.upc.edu
18 33
 // Contact info: Marc Alier Forment granludo @ gmail.com or marc.alier @ upc.edu
19  
-//
20  
-// Moodle is free software: you can redistribute it and/or modify
21  
-// it under the terms of the GNU General Public License as published by
22  
-// the Free Software Foundation, either version 3 of the License, or
23  
-// (at your option) any later version.
24  
-//
25  
-// Moodle is distributed in the hope that it will be useful,
26  
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
27  
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28  
-// GNU General Public License for more details.
29  
-//
30  
-// You should have received a copy of the GNU General Public License
31  
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
32 34
 
33 35
 /**
34 36
  * This file defines de main basiclti configuration form
35 37
  *
36  
- * @package lti
37  
- * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
  38
+ * @package    mod
  39
+ * @subpackage lti
  40
+ * @copyright  2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
38 41
  *  marc.alier@upc.edu
39  
- * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu
40  
- *
41  
- * @author Marc Alier
42  
- * @author Jordi Piguillem
43  
- * @author Nikolas Galanis
44  
- * @author Charles Severance
45  
- *
46  
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  42
+ * @copyright  2009 Universitat Politecnica de Catalunya http://www.upc.edu
  43
+ * @author     Marc Alier
  44
+ * @author     Jordi Piguillem
  45
+ * @author     Nikolas Galanis
  46
+ * @author     Charles Severance
  47
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
47 48
  */
48 49
 
49 50
 defined('MOODLE_INTERNAL') || die;
49  mod/lti/grade.php
... ...
@@ -1,4 +1,19 @@
1 1
 <?php
  2
+// This file is part of Moodle - http://moodle.org/
  3
+//
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
  8
+//
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
  13
+//
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16
+//
2 17
 // This file is part of BasicLTI4Moodle
3 18
 //
4 19
 // BasicLTI4Moodle is an IMS BasicLTI (Basic Learning Tools for Interoperability)
@@ -16,35 +31,21 @@
16 31
 // BasicLTI4Moodle is copyright 2009 by Marc Alier Forment, Jordi Piguillem and Nikolas Galanis
17 32
 // of the Universitat Politecnica de Catalunya http://www.upc.edu
18 33
 // Contact info: Marc Alier Forment granludo @ gmail.com or marc.alier @ upc.edu
19  
-//
20  
-// Moodle is free software: you can redistribute it and/or modify
21  
-// it under the terms of the GNU General Public License as published by
22  
-// the Free Software Foundation, either version 3 of the License, or
23  
-// (at your option) any later version.
24  
-//
25  
-// Moodle is distributed in the hope that it will be useful,
26  
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
27  
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28  
-// GNU General Public License for more details.
29  
-//
30  
-// You should have received a copy of the GNU General Public License
31  
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
32  
-
33 34
 
34 35
 /**
35 36
  * This file contains submissions-specific code for the basiclti module
36 37
  *
37  
- * @package lti
38  
- * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
  38
+ * @package    mod
  39
+ * @subpackage lti
  40
+ * @copyright  2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
39 41
  *  marc.alier@upc.edu
40  
- * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu
41  
- *
42  
- * @author Marc Alier
43  
- * @author Jordi Piguillem
44  
- * @author Nikolas Galanis
45  
- *
46  
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  42
+ * @copyright  2009 Universitat Politecnica de Catalunya http://www.upc.edu
  43
+ * @author     Marc Alier
  44
+ * @author     Jordi Piguillem
  45
+ * @author     Nikolas Galanis
  46
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
47 47
  */
  48
+
48 49
 require_once("../../config.php");
49 50
 require_once($CFG->dirroot.'/mod/lti/lib.php');
50 51
 require_once($CFG->libdir.'/plagiarismlib.php');
@@ -181,4 +182,4 @@
181 182
 
182 183
 echo $table;
183 184
 
184  
-echo $OUTPUT->footer();
  185
+echo $OUTPUT->footer();
243  mod/lti/index.php
... ...
@@ -1,121 +1,122 @@
1  
-<?php
2  
-// This file is part of BasicLTI4Moodle
3  
-//
4  
-// BasicLTI4Moodle is an IMS BasicLTI (Basic Learning Tools for Interoperability)
5  
-// consumer for Moodle 1.9 and Moodle 2.0. BasicLTI is a IMS Standard that allows web
6  
-// based learning tools to be easily integrated in LMS as native ones. The IMS BasicLTI
7  
-// specification is part of the IMS standard Common Cartridge 1.1 Sakai and other main LMS
8  
-// are already supporting or going to support BasicLTI. This project Implements the consumer
9  
-// for Moodle. Moodle is a Free Open source Learning Management System by Martin Dougiamas.
10  
-// BasicLTI4Moodle is a project iniciated and leaded by Ludo(Marc Alier) and Jordi Piguillem
11  
-// at the GESSI research group at UPC.
12  
-// SimpleLTI consumer for Moodle is an implementation of the early specification of LTI
13  
-// by Charles Severance (Dr Chuck) htp://dr-chuck.com , developed by Jordi Piguillem in a
14  
-// Google Summer of Code 2008 project co-mentored by Charles Severance and Marc Alier.
15  
-//
16  
-// BasicLTI4Moodle is copyright 2009 by Marc Alier Forment, Jordi Piguillem and Nikolas Galanis
17  
-// of the Universitat Politecnica de Catalunya http://www.upc.edu
18  
-// Contact info: Marc Alier Forment granludo @ gmail.com or marc.alier @ upc.edu
19  
-//
20  
-// Moodle is free software: you can redistribute it and/or modify
21  
-// it under the terms of the GNU General Public License as published by
22  
-// the Free Software Foundation, either version 3 of the License, or
23  
-// (at your option) any later version.
24  
-//
25  
-// Moodle is distributed in the hope that it will be useful,
26  
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
27  
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28  
-// GNU General Public License for more details.
29  
-//
30  
-// You should have received a copy of the GNU General Public License
31  
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
32  
-
33  
-/**
34  
- * This page lists all the instances of basiclti in a particular course
35  
- *
36  
- * @package lti
37  
- * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
38  
- *  marc.alier@upc.edu
39  
- * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu
40  
- *
41  
- * @author Marc Alier
42  
- * @author Jordi Piguillem
43  
- * @author Nikolas Galanis
44  
- *
45  
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
46  
- */
47  
-require_once("../../config.php");
48  
-require_once($CFG->dirroot.'/mod/lti/lib.php');
49  
-
50  
-$id = required_param('id', PARAM_INT);   // course id
51  
-
52  
-if (! $course = $DB->get_record("course", array("id" => $id))) {
53  
-    throw new moodle_exception('generalexceptionmessage', 'error', '', 'Course ID is incorrect');
54  
-}
55  
-
56  
-$url = new moodle_url('/mod/lti/index.php', array('id'=>$id));
57  
-$PAGE->set_url($url);
58  
-$PAGE->set_pagelayout('incourse');
59  
-
60  
-require_login($course);
61  
-
62  
-add_to_log($course->id, "lti", "view all", "index.php?id=$course->id", "");
63  
-
64  
-$pagetitle = strip_tags($course->shortname.': '.get_string("modulenamepluralformatted", "lti"));
65  
-$PAGE->set_title($pagetitle);
66  
-$PAGE->set_heading($course->fullname);
67  
-
68  
-echo $OUTPUT->header();
69  
-
70  
-/// Print the main part of the page
71  
-echo $OUTPUT->heading(get_string("modulenamepluralformatted", "lti"));
72  
-
73  
-/// Get all the appropriate data
74  
-if (! $basicltis = get_all_instances_in_course("lti", $course)) {
75  
-    notice("There are no basicltis", "../../course/view.php?id=$course->id");
76  
-    die;
77  
-}
78  
-
79  
-/// Print the list of instances (your module will probably extend this)
80  
-$timenow = time();
81  
-$strname = get_string("name");
82  
-$strsectionname  = get_string('sectionname', 'format_'.$course->format);
83  
-$usesections = course_format_uses_sections($course->format);
84  
-if ($usesections) {
85  
-    $sections = get_all_sections($course->id);
86  
-}
87  
-
88  
-$table = new html_table();
89  
-$table->attributes['class'] = 'generaltable mod_index';
90  
-
91  
-if ($usesections) {
92  
-    $table->head  = array ($strsectionname, $strname);
93  
-    $table->align = array ("center", "left");
94  
-} else {
95  
-    $table->head  = array ($strname);
96  
-}
97  
-
98  
-foreach ($basicltis as $basiclti) {
99  
-    if (!$basiclti->visible) {
100  
-        //Show dimmed if the mod is hidden
101  
-        $link = "<a class=\"dimmed\" href=\"view.php?id=$basiclti->coursemodule\">$basiclti->name</a>";
102  
-    } else {
103  
-        //Show normal if the mod is visible
104  
-        $link = "<a href=\"view.php?id=$basiclti->coursemodule\">$basiclti->name</a>";
105  
-    }
106  
-
107  
-    if ($course->format == "weeks" or $course->format == "topics") {
108  
-        $table->data[] = array ($basiclti->section, $link);
109  
-    } else {
110  
-        $table->data[] = array ($link);
111  
-    }
112  
-}
113  
-
114  
-echo "<br />";
115  
-
116  
-echo html_writer::table($table);
117  
-
118  
-/// Finish the page
119  
-
120  
-echo $OUTPUT->footer();
121  
-
  1
+<?php
  2
+// This file is part of Moodle - http://moodle.org/
  3
+//
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
  8
+//
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
  13
+//
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16
+//
  17
+// This file is part of BasicLTI4Moodle
  18
+//
  19
+// BasicLTI4Moodle is an IMS BasicLTI (Basic Learning Tools for Interoperability)
  20
+// consumer for Moodle 1.9 and Moodle 2.0. BasicLTI is a IMS Standard that allows web
  21
+// based learning tools to be easily integrated in LMS as native ones. The IMS BasicLTI
  22
+// specification is part of the IMS standard Common Cartridge 1.1 Sakai and other main LMS
  23
+// are already supporting or going to support BasicLTI. This project Implements the consumer
  24
+// for Moodle. Moodle is a Free Open source Learning Management System by Martin Dougiamas.
  25
+// BasicLTI4Moodle is a project iniciated and leaded by Ludo(Marc Alier) and Jordi Piguillem
  26
+// at the GESSI research group at UPC.
  27
+// SimpleLTI consumer for Moodle is an implementation of the early specification of LTI
  28
+// by Charles Severance (Dr Chuck) htp://dr-chuck.com , developed by Jordi Piguillem in a
  29
+// Google Summer of Code 2008 project co-mentored by Charles Severance and Marc Alier.
  30
+//
  31
+// BasicLTI4Moodle is copyright 2009 by Marc Alier Forment, Jordi Piguillem and Nikolas Galanis
  32
+// of the Universitat Politecnica de Catalunya http://www.upc.edu
  33
+// Contact info: Marc Alier Forment granludo @ gmail.com or marc.alier @ upc.edu
  34
+
  35
+/**
  36
+ * This page lists all the instances of basiclti in a particular course
  37
+ *
  38
+ * @package    mod
  39
+ * @subpackage lti
  40
+ * @copyright  2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
  41
+ *  marc.alier@upc.edu
  42
+ * @copyright  2009 Universitat Politecnica de Catalunya http://www.upc.edu
  43
+ * @author     Marc Alier
  44
+ * @author     Jordi Piguillem
  45
+ * @author     Nikolas Galanis
  46
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  47
+ */
  48
+require_once("../../config.php");
  49
+require_once($CFG->dirroot.'/mod/lti/lib.php');
  50
+
  51
+$id = required_param('id', PARAM_INT);   // course id
  52
+
  53
+if (! $course = $DB->get_record("course", array("id" => $id))) {
  54
+    throw new moodle_exception('generalexceptionmessage', 'error', '', 'Course ID is incorrect');
  55
+}
  56
+
  57
+$url = new moodle_url('/mod/lti/index.php', array('id'=>$id));
  58
+$PAGE->set_url($url);
  59
+$PAGE->set_pagelayout('incourse');
  60
+
  61
+require_login($course);
  62
+
  63
+add_to_log($course->id, "lti", "view all", "index.php?id=$course->id", "");
  64
+
  65
+$pagetitle = strip_tags($course->shortname.': '.get_string("modulenamepluralformatted", "lti"));
  66
+$PAGE->set_title($pagetitle);
  67
+$PAGE->set_heading($course->fullname);
  68
+
  69
+echo $OUTPUT->header();
  70
+
  71
+/// Print the main part of the page
  72
+echo $OUTPUT->heading(get_string("modulenamepluralformatted", "lti"));
  73
+
  74
+/// Get all the appropriate data
  75
+if (! $basicltis = get_all_instances_in_course("lti", $course)) {
  76
+    notice("There are no basicltis", "../../course/view.php?id=$course->id");
  77
+    die;
  78
+}
  79
+
  80
+/// Print the list of instances (your module will probably extend this)
  81
+$timenow = time();
  82
+$strname = get_string("name");
  83
+$strsectionname  = get_string('sectionname', 'format_'.$course->format);
  84
+$usesections = course_format_uses_sections($course->format);
  85
+if ($usesections) {
  86
+    $sections = get_all_sections($course->id);
  87
+}
  88
+
  89
+$table = new html_table();
  90
+$table->attributes['class'] = 'generaltable mod_index';
  91
+
  92
+if ($usesections) {
  93
+    $table->head  = array ($strsectionname, $strname);
  94
+    $table->align = array ("center", "left");
  95
+} else {
  96
+    $table->head  = array ($strname);
  97
+}
  98
+
  99
+foreach ($basicltis as $basiclti) {
  100
+    if (!$basiclti->visible) {
  101
+        //Show dimmed if the mod is hidden
  102
+        $link = "<a class=\"dimmed\" href=\"view.php?id=$basiclti->coursemodule\">$basiclti->name</a>";
  103
+    } else {
  104
+        //Show normal if the mod is visible
  105
+        $link = "<a href=\"view.php?id=$basiclti->coursemodule\">$basiclti->name</a>";
  106
+    }
  107
+
  108
+    if ($course->format == "weeks" or $course->format == "topics") {
  109
+        $table->data[] = array ($basiclti->section, $link);
  110
+    } else {
  111
+        $table->data[] = array ($link);
  112
+    }
  113
+}
  114
+
  115
+echo "<br />";
  116
+
  117
+echo html_writer::table($table);
  118
+
  119
+/// Finish the page
  120
+
  121
+echo $OUTPUT->footer();
  122
+
24  mod/lti/instructor_edit_tool_type.php
... ...
@@ -1,4 +1,28 @@
1 1
 <?php
  2
+// This file is part of Moodle - http://moodle.org/
  3
+//
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
  8
+//
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
  13
+//
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16
+
  17
+/**
  18
+ * MRTODO: Brief description of this file
  19
+ *
  20
+ * @package    mod
  21
+ * @subpackage lti
  22
+ * @copyright  2011 onwards MRTODO
  23
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  24
+ */
  25
+
2 26
 require_once('../../config.php');
3 27
 require_once($CFG->dirroot.'/mod/lti/edit_form.php');
4 28
 
45  mod/lti/lang/en/lti.php
... ...
@@ -1,4 +1,19 @@
1 1
 <?php
  2
+// This file is part of Moodle - http://moodle.org/
  3
+//
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
  8
+//
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
  13
+//
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16
+//
2 17
 // This file is part of BasicLTI4Moodle
3 18
 //
4 19
 // BasicLTI4Moodle is an IMS BasicLTI (Basic Learning Tools for Interoperability)
@@ -16,33 +31,19 @@
16 31
 // BasicLTI4Moodle is copyright 2009 by Marc Alier Forment, Jordi Piguillem and Nikolas Galanis
17 32
 // of the Universitat Politecnica de Catalunya http://www.upc.edu
18 33
 // Contact info: Marc Alier Forment granludo @ gmail.com or marc.alier @ upc.edu
19  
-//
20  
-// Moodle is free software: you can redistribute it and/or modify
21  
-// it under the terms of the GNU General Public License as published by
22  
-// the Free Software Foundation, either version 3 of the License, or
23  
-// (at your option) any later version.
24  
-//
25  
-// Moodle is distributed in the hope that it will be useful,
26  
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
27  
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28  
-// GNU General Public License for more details.
29  
-//
30  
-// You should have received a copy of the GNU General Public License
31  
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
32 34
 
33 35
 /**
34 36
  * This file contains en_utf8 translation of the Basic LTI module
35 37
  *
36  
- * @package basiclti
37  
- * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
  38
+ * @package    mod
  39
+ * @subpackage lti
  40
+ * @copyright  2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
38 41
  *  marc.alier@upc.edu
39  
- * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu
40  
- *
41  
- * @author Marc Alier
42  
- * @author Jordi Piguillem
43  
- * @author Nikolas Galanis
44  
- *
45  
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  42
+ * @copyright  2009 Universitat Politecnica de Catalunya http://www.upc.edu
  43
+ * @author     Marc Alier
  44
+ * @author     Jordi Piguillem
  45
+ * @author     Nikolas Galanis
  46
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
46 47
  */
47 48
 
48 49
 //Permissions
45  mod/lti/launch.php
... ...
@@ -1,4 +1,19 @@
1 1
 <?php
  2
+// This file is part of Moodle - http://moodle.org/
  3
+//
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
  8
+//
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
  13
+//
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16
+//
2 17
 // This file is part of BasicLTI4Moodle
3 18
 //
4 19
 // BasicLTI4Moodle is an IMS BasicLTI (Basic Learning Tools for Interoperability)
@@ -16,33 +31,19 @@
16 31
 // BasicLTI4Moodle is copyright 2009 by Marc Alier Forment, Jordi Piguillem and Nikolas Galanis
17 32
 // of the Universitat Politecnica de Catalunya http://www.upc.edu
18 33
 // Contact info: Marc Alier Forment granludo @ gmail.com or marc.alier @ upc.edu
19  
-//
20  
-// Moodle is free software: you can redistribute it and/or modify
21  
-// it under the terms of the GNU General Public License as published by
22  
-// the Free Software Foundation, either version 3 of the License, or
23  
-// (at your option) any later version.
24  
-//
25  
-// Moodle is distributed in the hope that it will be useful,
26  
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
27  
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28  
-// GNU General Public License for more details.
29  
-//
30  
-// You should have received a copy of the GNU General Public License
31  
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
32 34
 
33 35
 /**
34 36
  * This file contains all necessary code to view a basiclti activity instance
35 37
  *
36  
- * @package lti
37  
- * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
  38
+ * @package    mod
  39
+ * @subpackage lti
  40
+ * @copyright  2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
38 41
  *  marc.alier@upc.edu
39  
- * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu
40  
- *
41  
- * @author Marc Alier
42  
- * @author Jordi Piguillem
43  
- * @author Nikolas Galanis
44  
- *
45  
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  42
+ * @copyright  2009 Universitat Politecnica de Catalunya http://www.upc.edu
  43
+ * @author     Marc Alier
  44
+ * @author     Jordi Piguillem
  45
+ * @author     Nikolas Galanis
  46
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
46 47
  */
47 48
 
48 49
 require_once("../../config.php");
50  mod/lti/lib.php
... ...
@@ -1,4 +1,19 @@
1 1
 <?php
  2
+// This file is part of Moodle - http://moodle.org/
  3
+//
  4
+// Moodle is free software: you can redistribute it and/or modify
  5
+// it under the terms of the GNU General Public License as published by
  6
+// the Free Software Foundation, either version 3 of the License, or
  7
+// (at your option) any later version.
  8
+//
  9
+// Moodle is distributed in the hope that it will be useful,
  10
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12
+// GNU General Public License for more details.
  13
+//
  14
+// You should have received a copy of the GNU General Public License
  15
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16
+//
2 17
 // This file is part of BasicLTI4Moodle
3 18
 //
4 19
 // BasicLTI4Moodle is an IMS BasicLTI (Basic Learning Tools for Interoperability)
@@ -16,34 +31,19 @@
16 31
 // BasicLTI4Moodle is copyright 2009 by Marc Alier Forment, Jordi Piguillem and Nikolas Galanis
17 32
 // of the Universitat Politecnica de Catalunya http://www.upc.edu
18 33
 // Contact info: Marc Alier Forment granludo @ gmail.com or marc.alier @ upc.edu
19  
-//
20  
-// Moodle is free software: you can redistribute it and/or modify
21  
-// it under the terms of the GNU General Public License as published by
22  
-// the Free Software Foundation, either version 3 of the License, or
23  
-// (at your option) any later version.
24  
-//
25  
-// Moodle is distributed in the hope that it will be useful,
26  
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
27  
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28  
-// GNU General Public License for more details.
29  
-//
30  
-// You should have received a copy of the GNU General Public License
31  
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
32 34
 
33 35
 /**
34  
- * This file contains a library of functions and constants for the
35  
- * BasicLTI module
  36
+ * This file contains a library of functions and constants for the lti module
36 37
  *
37  
- * @package lti
38  
- * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
  38
+ * @package    mod
  39
+ * @subpackage lti
  40
+ * @copyright  2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
39 41
  *  marc.alier@upc.edu
40  
- * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu
41  
- *
42  
- * @author Marc Alier
43  
- * @author Jordi Piguillem
44  
- * @author Nikolas Galanis
45  
- *
46  
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  42
+ * @copyright  2009 Universitat Politecnica de Catalunya http://www.upc.edu
  43
+ * @author     Marc Alier
  44
+ * @author     Jordi Piguillem
  45
+ * @author     Nikolas Galanis
  46
+ * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
47 47
  */
48 48
 
49 49
 defined('MOODLE_INTERNAL') || die;
@@ -399,4 +399,4 @@ function lti_extend_settings_navigation($settings, $parentnode) {
399 399
 
400 400
         $parentnode->add_node($node, $keys[1]);
401 401
     }
402  
-}
  402
+}
171  mod/lti/localadminlib.php
... ...
@@ -1,85 +1,86 @@