From 0fbc25e2a63db17b2bb5f16bb7bd479832bb88e0 Mon Sep 17 00:00:00 2001 From: Tobias Baden <tobias.baden@stud.hs-hannover.de> Date: Tue, 5 Feb 2019 17:53:52 +0100 Subject: [PATCH] Added licence information --- amd/src/jmodule.js | 16 ++++++++++++++++ amd/src/listselect.js | 23 +++++++++++++++++++++++ block_hshcourselist.php | 23 +++++++++++++++++++++++ db/access.php | 23 +++++++++++++++++++++++ edit_form.php | 23 +++++++++++++++++++++++ hshcourselist.php | 5 ++++- lang/en/block_hshcourselist.php | 24 ++++++++++++++++++++++++ version.php | 25 +++++++++++++++++++++++++ 8 files changed, 161 insertions(+), 1 deletion(-) diff --git a/amd/src/jmodule.js b/amd/src/jmodule.js index 7000aea..6785cbc 100644 --- a/amd/src/jmodule.js +++ b/amd/src/jmodule.js @@ -1,3 +1,19 @@ +// This file is part of Moodle - http://moodle.org/ +// +// Moodle is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Moodle is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Moodle. If not, see <http://www.gnu.org/licenses/>. + + define(['jquery'], function ($) { function search(searchstring, reloadBool, displaymode, instanceid, sesskey, contextid, idSearching, orderbysemester, wwwroot) { if (reloadBool) { diff --git a/amd/src/listselect.js b/amd/src/listselect.js index 2d9c2d1..b93640e 100644 --- a/amd/src/listselect.js +++ b/amd/src/listselect.js @@ -1,3 +1,26 @@ +// This file is part of Moodle - http://moodle.org/ +// +// Moodle is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Moodle is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Moodle. If not, see <http://www.gnu.org/licenses/>. + +/** + * + * @package theme_hsh_boost_campus + * @copyright 2018 Tobias Baden, Hochschule Hannover + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + + define(["jquery"], function($) { function changeActionString(current, wwwroot) { var actionString = wwwroot + "/course/view.php?id=" + current.val(); diff --git a/block_hshcourselist.php b/block_hshcourselist.php index 023ecd3..ec80b60 100644 --- a/block_hshcourselist.php +++ b/block_hshcourselist.php @@ -1,4 +1,27 @@ <?php +// This file is part of Moodle - http://moodle.org/ +// +// Moodle is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Moodle is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Moodle. If not, see <http://www.gnu.org/licenses/>. + +/** + * Course list block. + * Original: block_course_list + * + * @package block_hshcourselist + * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com), Edited by Tobias Baden, Hochschule Hannover + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ defined('MOODLE_INTERNAL') || die(); class block_hshcourselist extends block_base { diff --git a/db/access.php b/db/access.php index 9f01ec3..2386f46 100644 --- a/db/access.php +++ b/db/access.php @@ -1,4 +1,27 @@ <?php +// This file is part of Moodle - http://moodle.org/ +// +// Moodle is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Moodle is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Moodle. If not, see <http://www.gnu.org/licenses/>. + +/** + * Course list block caps. + * + * @package block_course_list, renamed to block_hshcourselist by Tobias Baden + * @copyright Mark Nelson <markn@moodle.com> + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + $capabilities = array( 'block/hshcourselist:myaddinstance' => array( diff --git a/edit_form.php b/edit_form.php index c0bc59d..d920e32 100644 --- a/edit_form.php +++ b/edit_form.php @@ -1,4 +1,27 @@ <?php +// This file is part of Moodle - http://moodle.org/ +// +// Moodle is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Moodle is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Moodle. If not, see <http://www.gnu.org/licenses/>. +/** + * Server-side script for generating response to AJAX search request + * Original: block_course_list + * + * @package block_hshcourselist + * @author Mark Johnson <mark.johnson@tauntons.ac.uk>, Edited by Tobias Baden, Hochschule Hannover + * @copyright 2010 Tauntons College, UK + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ class block_hshcourselist_edit_form extends block_edit_form { diff --git a/hshcourselist.php b/hshcourselist.php index f1723a6..a0882ff 100644 --- a/hshcourselist.php +++ b/hshcourselist.php @@ -15,12 +15,15 @@ // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Server-side script for generating response to AJAX search request + * Original: block_course_list * * @package block_hshcourselist - * @author Mark Johnson <mark.johnson@tauntons.ac.uk> + * @author Mark Johnson <mark.johnson@tauntons.ac.uk>, Edited by Tobias Baden, Hochschule Hannover * @copyright 2010 Tauntons College, UK * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ + + //define('AJAX_SCRIPT', true); require_once('../../config.php'); require_once($CFG->dirroot . '/blocks/moodleblock.class.php'); diff --git a/lang/en/block_hshcourselist.php b/lang/en/block_hshcourselist.php index 06657f1..7837008 100644 --- a/lang/en/block_hshcourselist.php +++ b/lang/en/block_hshcourselist.php @@ -1,4 +1,28 @@ <?php +// This file is part of Moodle - http://moodle.org/ +// +// Moodle is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Moodle is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Moodle. If not, see <http://www.gnu.org/licenses/>. + +/** + * Strings for component 'block_hshcourselist', language 'en' + * Original: block_course_list + * + * @package block_hshcourselist + * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}, Edited by Tobias Baden, Hochschule Hannover + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + $string['pluginname'] = 'HsH Courselist'; $string['hshcourselist'] = 'HsH Courselist'; $string['hshcourselist:addinstance'] = 'Füge einen neuen Suchblock hinzu'; diff --git a/version.php b/version.php index 92cb4aa..eab1613 100644 --- a/version.php +++ b/version.php @@ -1,4 +1,29 @@ <?php +// This file is part of Moodle - http://moodle.org/ +// +// Moodle is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Moodle is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Moodle. If not, see <http://www.gnu.org/licenses/>. + +/** + * Version details + * Original: block_course_list + * + * @package block_hshcourselist + * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com), Edited by Tobias Baden, Hochschule Hannover + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + + $plugin->component = 'block_hshcourselist'; $plugin->version = 2018091200; // YYYYMMDDHH $plugin->requires = 2016112900; // YYYYMMDDHH -- GitLab