Skip to content

Commit 860f8f6

Browse files
committed
Changed files header.
1 parent f435d2a commit 860f8f6

21 files changed

+338
-50
lines changed

backup/moodle2/backup_ubicast_activity_task.class.php

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
<?php
2+
3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
218
/**
319
* Defines backup_ubicast_activity_task class
420
*
5-
* @package mod
6-
* @subpackage ubicast
21+
* @package mod_ubicast
722
* @copyright 2013 UbiCast {@link https://www.ubicast.eu}
823
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
924
*/
1025

11-
if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); }
26+
defined('MOODLE_INTERNAL') || die();
1227

1328
require_once($CFG->dirroot . '/mod/ubicast/backup/moodle2/backup_ubicast_stepslib.php');
1429

backup/moodle2/backup_ubicast_stepslib.php

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
<?php
2+
3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
218
/**
319
* Define all the backup steps that will be used by the backup_ubicast_activity_task
420
*
5-
* @package mod
6-
* @subpackage ubicast
21+
* @package mod_ubicast
722
* @copyright 2013 UbiCast {@link https://www.ubicast.eu}
823
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
924
*/
1025

11-
if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); }
26+
defined('MOODLE_INTERNAL') || die();
1227

1328
/**
1429
* Define the complete ubicast structure for backup, with file and id annotations

backup/moodle2/restore_ubicast_activity_task.class.php

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
<?php
2+
3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
218
/**
3-
* @package mod
4-
* @subpackage ubicast
19+
* @package mod_ubicast
520
* @copyright 2013 UbiCast {@link https://www.ubicast.eu}
621
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
722
*/
823

9-
if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); }
24+
defined('MOODLE_INTERNAL') || die();
1025

1126
require_once($CFG->dirroot . '/mod/ubicast/backup/moodle2/restore_ubicast_stepslib.php'); // Because it exists (must)
1227

backup/moodle2/restore_ubicast_stepslib.php

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
<?php
2+
3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
218
/**
3-
* @package mod
4-
* @subpackage ubicast
19+
* @package mod_ubicast
520
* @copyright 2013 UbiCast {@link https://www.ubicast.eu}
621
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
722
*/

classes/event/course_module_instance_list_viewed.php

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
<?php
22

3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
318
/**
419
* The mod_ubicast instance list viewed event.
520
*

classes/event/course_module_viewed.php

+16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?php
2+
3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
218
/**
319
* The mod_ubicast course module viewed event.
420
*

db/access.php

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
<?php
2+
3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
218
/**
319
* Capability definitions for the url module.
420
*
5-
* @package mod
6-
* @subpackage ubicast
21+
* @package mod_ubicast
722
* @copyright 2013 UbiCast {@link https://www.ubicast.eu}
823
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
924
*/
1025

11-
defined('MOODLE_INTERNAL') || die;
26+
defined('MOODLE_INTERNAL') || die();
1227

1328
$capabilities = array(
1429
'mod/ubicast:view' => array(

db/install.php

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
<?php
2+
3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
218
/**
319
* Post installation and migration code.
420
*
5-
* @package mod
6-
* @subpackage ubicast
21+
* @package mod_ubicast
722
* @copyright 2013 UbiCast {@link https://www.ubicast.eu}
823
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
924
*/
1025

11-
if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); }
26+
defined('MOODLE_INTERNAL') || die();
1227

1328
function xmldb_ubicast_install() {
1429
global $CFG;

db/log.php

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
<?php
2+
3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
218
/**
319
* Definition of log events
420
*
5-
* @package mod
6-
* @subpackage ubicast
21+
* @package mod_ubicast
722
* @copyright 2013 UbiCast {@link https://www.ubicast.eu}
823
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
924
*/
1025

11-
if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); }
26+
defined('MOODLE_INTERNAL') || die();
1227

1328
$logs = array(
1429
array('module'=>'ubicast', 'action'=>'view', 'mtable'=>'ubicast', 'field'=>'name'),

db/upgrade.php

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
<?php
2+
3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
218
/**
319
* URL module upgrade code
420
*
5-
* @package mod
6-
* @subpackage ubicast
21+
* @package mod_ubicast
722
* @copyright 2013 UbiCast {@link https://www.ubicast.eu}
823
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
924
*/
1025

11-
defined('MOODLE_INTERNAL') || die;
26+
defined('MOODLE_INTERNAL') || die();
1227

1328
function xmldb_ubicast_upgrade($oldversion) {
1429
global $CFG, $DB;

index.php

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
<?php
2+
3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
218
/**
319
* List of ubicast medias in course
420
*
5-
* @package mod
6-
* @subpackage ubicast
21+
* @package mod_ubicast
722
* @copyright 2013 UbiCast {@link https://www.ubicast.eu}
823
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
924
*/

lang/en/ubicast.php

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
<?php
2+
3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
218
/**
319
* Strings for component 'ubicast', language 'en'
420
*
5-
* @package mod
6-
* @subpackage ubicast
21+
* @package mod_ubicast
722
* @copyright 2013 UbiCast {@link https://www.ubicast.eu}
823
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
924
*/

lang/fr/ubicast.php

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
<?php
2+
3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
218
/**
319
* Strings for component 'ubicast', language 'fr'
420
*
5-
* @package mod
6-
* @subpackage ubicast
21+
* @package mod_ubicast
722
* @copyright 2013 UbiCast {@link https://www.ubicast.eu}
823
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
924
*/

launch.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
// This file is part of Moodle - http://moodle.org/
34
//
45
// Moodle is free software: you can redistribute it and/or modify
@@ -35,7 +36,7 @@
3536
/**
3637
* This file contains all necessary code to view a lti activity instance
3738
*
38-
* @package mod_lti
39+
* @package mod_ubicast
3940
* @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
4041
4142
* @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu

0 commit comments

Comments
 (0)