From 37b24235fdd27c82b0624bc0eea47cf5e09b4070 Mon Sep 17 00:00:00 2001 From: Stefan Hanauska Date: Mon, 26 Aug 2024 21:20:41 +0200 Subject: [PATCH] Coding style --- amd/build/initliveupdater.min.js | 2 +- amd/build/initliveupdater.min.js.map | 2 +- amd/build/liveupdater.min.js | 2 +- amd/build/liveupdater.min.js.map | 2 +- amd/build/renderer.min.js | 2 +- amd/build/renderer.min.js.map | 2 +- amd/src/initliveupdater.js | 2 +- amd/src/liveupdater.js | 2 +- amd/src/renderer.js | 2 +- classes/external/get_dependingmodules.php | 4 ++-- classes/external/get_learningmap.php | 4 ++-- classes/local/hook_callbacks.php | 1 - classes/migrationhelper.php | 2 +- classes/task/fill_backlink_cache.php | 2 +- db/services.php | 2 +- db/tasks.php | 2 +- db/upgrade.php | 2 +- environmentchecks.php | 2 +- index.php | 2 +- tests/mod_learningmap_activitymanager_test.php | 2 +- tests/mod_learningmap_backlink_cache_test.php | 2 +- tests/mod_learningmap_completion_test.php | 2 +- tests/mod_learningmap_generation_test.php | 2 +- tests/mod_learningmap_mapworker_test.php | 2 +- tests/mod_learningmap_testcase.php | 2 +- 25 files changed, 26 insertions(+), 27 deletions(-) diff --git a/amd/build/initliveupdater.min.js b/amd/build/initliveupdater.min.js index 5ab4675..98333d3 100644 --- a/amd/build/initliveupdater.min.js +++ b/amd/build/initliveupdater.min.js @@ -5,7 +5,7 @@ define("mod_learningmap/initliveupdater",["exports","mod_learningmap/liveupdater * @module mod_learningmap/initliveupdater * @copyright 2021-2024, ISB Bayern * @author Philipp Memmel - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.init=void 0,_liveupdater=_interopRequireDefault(_liveupdater),_ajax=_interopRequireDefault(_ajax),_log=_interopRequireDefault(_log),_pending=_interopRequireDefault(_pending);_exports.init=async cmId=>{const initliveupdaterPendingPromise=new _pending.default("mod_learningmap/initliveupdater");try{const data=await _ajax.default.call([{methodname:"mod_learningmap_get_dependingmodules",args:{cmId:cmId}}])[0];return initliveupdaterPendingPromise.resolve(),new _liveupdater.default({element:document.getElementById(_renderer.selectors.LEARNINGMAP_RENDER_CONTAINER_PREFIX+cmId),reactive:(0,_courseeditor.getCurrentCourseEditor)(),cmId:cmId,dependingModuleIds:data.dependingModuleIds})}catch(error){return _log.default.error(error),initliveupdaterPendingPromise.reject(),!1}}})); //# sourceMappingURL=initliveupdater.min.js.map \ No newline at end of file diff --git a/amd/build/initliveupdater.min.js.map b/amd/build/initliveupdater.min.js.map index f88b433..4c84100 100644 --- a/amd/build/initliveupdater.min.js.map +++ b/amd/build/initliveupdater.min.js.map @@ -1 +1 @@ -{"version":3,"file":"initliveupdater.min.js","sources":["../src/initliveupdater.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle. If not, see .\n\n/**\n * Main module for the massaction block.\n *\n * @module mod_learningmap/initliveupdater\n * @copyright 2021-2024, ISB Bayern\n * @author Philipp Memmel\n * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\nimport LiveUpdater from 'mod_learningmap/liveupdater';\nimport {selectors} from 'mod_learningmap/renderer';\nimport {getCurrentCourseEditor} from 'core_courseformat/courseeditor';\nimport Ajax from 'core/ajax';\nimport Log from 'core/log';\nimport Pending from 'core/pending';\n\n/**\n * Renders the learningmap into the correct div.\n *\n * @param {number} cmId the course module id of the learningmap\n * @return {Component} the liveupdater component\n */\nexport const init = async(cmId) => {\n const initliveupdaterPendingPromise = new Pending('mod_learningmap/initliveupdater');\n try {\n const data = await Ajax.call(\n [\n {\n methodname: 'mod_learningmap_get_dependingmodules',\n args: {\n 'cmId': cmId\n }\n }\n ])[0];\n\n initliveupdaterPendingPromise.resolve();\n return new LiveUpdater({\n element: document.getElementById(selectors.LEARNINGMAP_RENDER_CONTAINER_PREFIX + cmId),\n reactive: getCurrentCourseEditor(),\n cmId: cmId,\n dependingModuleIds: data.dependingModuleIds\n });\n } catch (error) {\n Log.error(error);\n initliveupdaterPendingPromise.reject();\n return false;\n }\n};\n"],"names":["async","initliveupdaterPendingPromise","Pending","data","Ajax","call","methodname","args","cmId","resolve","LiveUpdater","element","document","getElementById","selectors","LEARNINGMAP_RENDER_CONTAINER_PREFIX","reactive","dependingModuleIds","error","reject"],"mappings":";;;;;;;;kQAoCoBA,MAAAA,aACVC,8BAAgC,IAAIC,iBAAQ,6CAExCC,WAAaC,cAAKC,KACpB,CACI,CACIC,WAAY,uCACZC,KAAM,MACMC,SAGjB,UAEPP,8BAA8BQ,UACvB,IAAIC,qBAAY,CACnBC,QAASC,SAASC,eAAeC,oBAAUC,oCAAsCP,MACjFQ,UAAU,0CACVR,KAAMA,KACNS,mBAAoBd,KAAKc,qBAE/B,MAAOC,2BACDA,MAAMA,OACVjB,8BAA8BkB,UACvB"} \ No newline at end of file +{"version":3,"file":"initliveupdater.min.js","sources":["../src/initliveupdater.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle. If not, see .\n\n/**\n * Main module for the massaction block.\n *\n * @module mod_learningmap/initliveupdater\n * @copyright 2021-2024, ISB Bayern\n * @author Philipp Memmel\n * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\nimport LiveUpdater from 'mod_learningmap/liveupdater';\nimport {selectors} from 'mod_learningmap/renderer';\nimport {getCurrentCourseEditor} from 'core_courseformat/courseeditor';\nimport Ajax from 'core/ajax';\nimport Log from 'core/log';\nimport Pending from 'core/pending';\n\n/**\n * Renders the learningmap into the correct div.\n *\n * @param {number} cmId the course module id of the learningmap\n * @return {Component} the liveupdater component\n */\nexport const init = async(cmId) => {\n const initliveupdaterPendingPromise = new Pending('mod_learningmap/initliveupdater');\n try {\n const data = await Ajax.call(\n [\n {\n methodname: 'mod_learningmap_get_dependingmodules',\n args: {\n 'cmId': cmId\n }\n }\n ])[0];\n\n initliveupdaterPendingPromise.resolve();\n return new LiveUpdater({\n element: document.getElementById(selectors.LEARNINGMAP_RENDER_CONTAINER_PREFIX + cmId),\n reactive: getCurrentCourseEditor(),\n cmId: cmId,\n dependingModuleIds: data.dependingModuleIds\n });\n } catch (error) {\n Log.error(error);\n initliveupdaterPendingPromise.reject();\n return false;\n }\n};\n"],"names":["async","initliveupdaterPendingPromise","Pending","data","Ajax","call","methodname","args","cmId","resolve","LiveUpdater","element","document","getElementById","selectors","LEARNINGMAP_RENDER_CONTAINER_PREFIX","reactive","dependingModuleIds","error","reject"],"mappings":";;;;;;;;kQAoCoBA,MAAAA,aACVC,8BAAgC,IAAIC,iBAAQ,6CAExCC,WAAaC,cAAKC,KACpB,CACI,CACIC,WAAY,uCACZC,KAAM,MACMC,SAGjB,UAEPP,8BAA8BQ,UACvB,IAAIC,qBAAY,CACnBC,QAASC,SAASC,eAAeC,oBAAUC,oCAAsCP,MACjFQ,UAAU,0CACVR,KAAMA,KACNS,mBAAoBd,KAAKc,qBAE/B,MAAOC,2BACDA,MAAMA,OACVjB,8BAA8BkB,UACvB"} \ No newline at end of file diff --git a/amd/build/liveupdater.min.js b/amd/build/liveupdater.min.js index 3908f0a..3b00920 100644 --- a/amd/build/liveupdater.min.js +++ b/amd/build/liveupdater.min.js @@ -5,7 +5,7 @@ define("mod_learningmap/liveupdater",["exports","core/reactive","core_course/act * @module mod_learningmap/liveupdater * @copyright 2021-2024, ISB Bayern * @author Philipp Memmel - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class _default extends _reactive.BaseComponent{create(descriptor){this.element=descriptor.element,this.reactive=descriptor.reactive,this.cmId=descriptor.cmId,this.dependingModuleIds=descriptor.dependingModuleIds}getWatchers(){const watchers=[];return this.dependingModuleIds.forEach((moduleId=>{watchers.push({watch:"cm[".concat(moduleId,"].completionstate:updated"),handler:this._rerenderLearningmap}),watchers.push({watch:"cm[".concat(moduleId,"].name:updated"),handler:this._rerenderLearningmap})})),watchers}_rerenderLearningmap(){(0,_actions.refreshModule)(this.element,this.cmId),(0,_renderer.renderLearningmap)(this.cmId)}}return _exports.default=_default,_exports.default})); diff --git a/amd/build/liveupdater.min.js.map b/amd/build/liveupdater.min.js.map index 66c39ef..52118f5 100644 --- a/amd/build/liveupdater.min.js.map +++ b/amd/build/liveupdater.min.js.map @@ -1 +1 @@ -{"version":3,"file":"liveupdater.min.js","sources":["../src/liveupdater.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle. If not, see .\n\n/**\n * Live updater component for mod_learningmap.\n *\n * @module mod_learningmap/liveupdater\n * @copyright 2021-2024, ISB Bayern\n * @author Philipp Memmel\n * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\nimport {BaseComponent} from 'core/reactive';\nimport {refreshModule} from 'core_course/actions';\nimport {renderLearningmap} from 'mod_learningmap/renderer';\n\n/**\n * The live updater component.\n */\nexport default class extends BaseComponent {\n create(descriptor) {\n this.element = descriptor.element;\n this.reactive = descriptor.reactive;\n this.cmId = descriptor.cmId;\n this.dependingModuleIds = descriptor.dependingModuleIds;\n }\n\n getWatchers() {\n const watchers = [];\n this.dependingModuleIds.forEach(moduleId => {\n watchers.push({watch: `cm[${moduleId}].completionstate:updated`, handler: this._rerenderLearningmap});\n watchers.push({watch: `cm[${moduleId}].name:updated`, handler: this._rerenderLearningmap});\n });\n return watchers;\n }\n\n /**\n * Handler for triggering the rerendering of the learningmap.\n */\n _rerenderLearningmap() {\n // We need this to update the automatic completion status. Unfortunately, this old function does not update the\n // JS, so we also need to render the learningmap afterwards.\n refreshModule(this.element, this.cmId);\n renderLearningmap(this.cmId);\n }\n}\n"],"names":["BaseComponent","create","descriptor","element","reactive","cmId","dependingModuleIds","getWatchers","watchers","forEach","moduleId","push","watch","handler","this","_rerenderLearningmap"],"mappings":";;;;;;;;;uBA8B6BA,wBACzBC,OAAOC,iBACEC,QAAUD,WAAWC,aACrBC,SAAWF,WAAWE,cACtBC,KAAOH,WAAWG,UAClBC,mBAAqBJ,WAAWI,mBAGzCC,oBACUC,SAAW,eACZF,mBAAmBG,SAAQC,WAC5BF,SAASG,KAAK,CAACC,mBAAaF,sCAAqCG,QAASC,KAAKC,uBAC/EP,SAASG,KAAK,CAACC,mBAAaF,2BAA0BG,QAASC,KAAKC,0BAEjEP,SAMXO,kDAGkBD,KAAKX,QAASW,KAAKT,sCACfS,KAAKT"} \ No newline at end of file +{"version":3,"file":"liveupdater.min.js","sources":["../src/liveupdater.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle. If not, see .\n\n/**\n * Live updater component for mod_learningmap.\n *\n * @module mod_learningmap/liveupdater\n * @copyright 2021-2024, ISB Bayern\n * @author Philipp Memmel\n * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\nimport {BaseComponent} from 'core/reactive';\nimport {refreshModule} from 'core_course/actions';\nimport {renderLearningmap} from 'mod_learningmap/renderer';\n\n/**\n * The live updater component.\n */\nexport default class extends BaseComponent {\n create(descriptor) {\n this.element = descriptor.element;\n this.reactive = descriptor.reactive;\n this.cmId = descriptor.cmId;\n this.dependingModuleIds = descriptor.dependingModuleIds;\n }\n\n getWatchers() {\n const watchers = [];\n this.dependingModuleIds.forEach(moduleId => {\n watchers.push({watch: `cm[${moduleId}].completionstate:updated`, handler: this._rerenderLearningmap});\n watchers.push({watch: `cm[${moduleId}].name:updated`, handler: this._rerenderLearningmap});\n });\n return watchers;\n }\n\n /**\n * Handler for triggering the rerendering of the learningmap.\n */\n _rerenderLearningmap() {\n // We need this to update the automatic completion status. Unfortunately, this old function does not update the\n // JS, so we also need to render the learningmap afterwards.\n refreshModule(this.element, this.cmId);\n renderLearningmap(this.cmId);\n }\n}\n"],"names":["BaseComponent","create","descriptor","element","reactive","cmId","dependingModuleIds","getWatchers","watchers","forEach","moduleId","push","watch","handler","this","_rerenderLearningmap"],"mappings":";;;;;;;;;uBA8B6BA,wBACzBC,OAAOC,iBACEC,QAAUD,WAAWC,aACrBC,SAAWF,WAAWE,cACtBC,KAAOH,WAAWG,UAClBC,mBAAqBJ,WAAWI,mBAGzCC,oBACUC,SAAW,eACZF,mBAAmBG,SAAQC,WAC5BF,SAASG,KAAK,CAACC,mBAAaF,sCAAqCG,QAASC,KAAKC,uBAC/EP,SAASG,KAAK,CAACC,mBAAaF,2BAA0BG,QAASC,KAAKC,0BAEjEP,SAMXO,kDAGkBD,KAAKX,QAASW,KAAKT,sCACfS,KAAKT"} \ No newline at end of file diff --git a/amd/build/renderer.min.js b/amd/build/renderer.min.js index 2715ac6..c735704 100644 --- a/amd/build/renderer.min.js +++ b/amd/build/renderer.min.js @@ -5,7 +5,7 @@ define("mod_learningmap/renderer",["exports","core/ajax","core/log","core/pendin * @module mod_learningmap/renderer * @copyright 2021-2024, ISB Bayern * @author Philipp Memmel - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.selectors=_exports.renderLearningmap=_exports.init=void 0,_ajax=_interopRequireDefault(_ajax),_log=_interopRequireDefault(_log),_pending=_interopRequireDefault(_pending);const selectors={LEARNINGMAP_RENDER_CONTAINER_PREFIX:"learningmap-render-container-"};_exports.selectors=selectors;_exports.init=cmId=>{const rendererPendingPromise=new _pending.default("mod_learningmap/renderer-"+cmId);renderLearningmap(cmId),rendererPendingPromise.resolve()};const renderLearningmap=cmId=>{_ajax.default.call([{methodname:"mod_learningmap_get_learningmap",args:{cmId:cmId}}])[0].then((data=>(document.getElementById(selectors.LEARNINGMAP_RENDER_CONTAINER_PREFIX+cmId).innerHTML=data.content,!0))).catch((error=>(_log.default.error(error),!1)))};_exports.renderLearningmap=renderLearningmap})); //# sourceMappingURL=renderer.min.js.map \ No newline at end of file diff --git a/amd/build/renderer.min.js.map b/amd/build/renderer.min.js.map index 36f1d5e..476448e 100644 --- a/amd/build/renderer.min.js.map +++ b/amd/build/renderer.min.js.map @@ -1 +1 @@ -{"version":3,"file":"renderer.min.js","sources":["../src/renderer.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle. If not, see .\n\n/**\n * Renderer module for the learningmap.\n *\n * @module mod_learningmap/renderer\n * @copyright 2021-2024, ISB Bayern\n * @author Philipp Memmel\n * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\nimport Ajax from 'core/ajax';\nimport Log from 'core/log';\nimport Pending from 'core/pending';\n\nexport const selectors = {\n LEARNINGMAP_RENDER_CONTAINER_PREFIX: 'learningmap-render-container-'\n};\n\n/**\n * Renders the learningmap into the correct div.\n *\n * @param {number} cmId the course module id of the learningmap\n */\nexport const init = (cmId) => {\n const rendererPendingPromise = new Pending('mod_learningmap/renderer-' + cmId);\n renderLearningmap(cmId);\n rendererPendingPromise.resolve();\n};\n\n/**\n * Render the learningmap with the given cmId into the corresponding div in the DOM.\n *\n * @param {number} cmId the course module id of the learningmap\n */\nexport const renderLearningmap = (cmId) => {\n const promises = Ajax.call(\n [\n {\n methodname: 'mod_learningmap_get_learningmap',\n args: {\n 'cmId': cmId\n }\n }\n ]);\n\n promises[0].then(data => {\n const targetDiv = document.getElementById(selectors.LEARNINGMAP_RENDER_CONTAINER_PREFIX + cmId);\n targetDiv.innerHTML = data.content;\n return true;\n }).catch((error) => {\n Log.error(error);\n return false;\n });\n};\n"],"names":["selectors","LEARNINGMAP_RENDER_CONTAINER_PREFIX","cmId","rendererPendingPromise","Pending","renderLearningmap","resolve","Ajax","call","methodname","args","then","data","document","getElementById","innerHTML","content","catch","error"],"mappings":";;;;;;;;sPA2BaA,UAAY,CACrBC,oCAAqC,4EAQpBC,aACXC,uBAAyB,IAAIC,iBAAQ,4BAA8BF,MACzEG,kBAAkBH,MAClBC,uBAAuBG,iBAQdD,kBAAqBH,OACbK,cAAKC,KAClB,CACI,CACIC,WAAY,kCACZC,KAAM,MACMR,SAKf,GAAGS,MAAKC,OACKC,SAASC,eAAed,UAAUC,oCAAsCC,MAChFa,UAAYH,KAAKI,SACpB,KACRC,OAAOC,qBACFA,MAAMA,QACH"} \ No newline at end of file +{"version":3,"file":"renderer.min.js","sources":["../src/renderer.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle. If not, see .\n\n/**\n * Renderer module for the learningmap.\n *\n * @module mod_learningmap/renderer\n * @copyright 2021-2024, ISB Bayern\n * @author Philipp Memmel\n * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\nimport Ajax from 'core/ajax';\nimport Log from 'core/log';\nimport Pending from 'core/pending';\n\nexport const selectors = {\n LEARNINGMAP_RENDER_CONTAINER_PREFIX: 'learningmap-render-container-'\n};\n\n/**\n * Renders the learningmap into the correct div.\n *\n * @param {number} cmId the course module id of the learningmap\n */\nexport const init = (cmId) => {\n const rendererPendingPromise = new Pending('mod_learningmap/renderer-' + cmId);\n renderLearningmap(cmId);\n rendererPendingPromise.resolve();\n};\n\n/**\n * Render the learningmap with the given cmId into the corresponding div in the DOM.\n *\n * @param {number} cmId the course module id of the learningmap\n */\nexport const renderLearningmap = (cmId) => {\n const promises = Ajax.call(\n [\n {\n methodname: 'mod_learningmap_get_learningmap',\n args: {\n 'cmId': cmId\n }\n }\n ]);\n\n promises[0].then(data => {\n const targetDiv = document.getElementById(selectors.LEARNINGMAP_RENDER_CONTAINER_PREFIX + cmId);\n targetDiv.innerHTML = data.content;\n return true;\n }).catch((error) => {\n Log.error(error);\n return false;\n });\n};\n"],"names":["selectors","LEARNINGMAP_RENDER_CONTAINER_PREFIX","cmId","rendererPendingPromise","Pending","renderLearningmap","resolve","Ajax","call","methodname","args","then","data","document","getElementById","innerHTML","content","catch","error"],"mappings":";;;;;;;;sPA2BaA,UAAY,CACrBC,oCAAqC,4EAQpBC,aACXC,uBAAyB,IAAIC,iBAAQ,4BAA8BF,MACzEG,kBAAkBH,MAClBC,uBAAuBG,iBAQdD,kBAAqBH,OACbK,cAAKC,KAClB,CACI,CACIC,WAAY,kCACZC,KAAM,MACMR,SAKf,GAAGS,MAAKC,OACKC,SAASC,eAAed,UAAUC,oCAAsCC,MAChFa,UAAYH,KAAKI,SACpB,KACRC,OAAOC,qBACFA,MAAMA,QACH"} \ No newline at end of file diff --git a/amd/src/initliveupdater.js b/amd/src/initliveupdater.js index 9e09e14..81d0d5e 100644 --- a/amd/src/initliveupdater.js +++ b/amd/src/initliveupdater.js @@ -19,7 +19,7 @@ * @module mod_learningmap/initliveupdater * @copyright 2021-2024, ISB Bayern * @author Philipp Memmel - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ import LiveUpdater from 'mod_learningmap/liveupdater'; import {selectors} from 'mod_learningmap/renderer'; diff --git a/amd/src/liveupdater.js b/amd/src/liveupdater.js index 77ee90b..c3438d8 100644 --- a/amd/src/liveupdater.js +++ b/amd/src/liveupdater.js @@ -19,7 +19,7 @@ * @module mod_learningmap/liveupdater * @copyright 2021-2024, ISB Bayern * @author Philipp Memmel - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ import {BaseComponent} from 'core/reactive'; import {refreshModule} from 'core_course/actions'; diff --git a/amd/src/renderer.js b/amd/src/renderer.js index 81bff81..84a84d8 100644 --- a/amd/src/renderer.js +++ b/amd/src/renderer.js @@ -19,7 +19,7 @@ * @module mod_learningmap/renderer * @copyright 2021-2024, ISB Bayern * @author Philipp Memmel - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ import Ajax from 'core/ajax'; import Log from 'core/log'; diff --git a/classes/external/get_dependingmodules.php b/classes/external/get_dependingmodules.php index 2590f74..4ec0d28 100644 --- a/classes/external/get_dependingmodules.php +++ b/classes/external/get_dependingmodules.php @@ -20,7 +20,7 @@ * @package mod_learningmap * @copyright 2021-2024, ISB Bayern * @author Philipp Memmel - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace mod_learningmap\external; @@ -46,7 +46,7 @@ * * @copyright 2021-2024, ISB Bayern * @author Philipp Memmel - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class get_dependingmodules extends external_api { /** diff --git a/classes/external/get_learningmap.php b/classes/external/get_learningmap.php index 7d4645c..0e8b06a 100644 --- a/classes/external/get_learningmap.php +++ b/classes/external/get_learningmap.php @@ -20,7 +20,7 @@ * @package mod_learningmap * @copyright 2021-2024, ISB Bayern * @author Philipp Memmel - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace mod_learningmap\external; @@ -45,7 +45,7 @@ * * @copyright 2021-2024, ISB Bayern * @author Philipp Memmel - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class get_learningmap extends external_api { /** diff --git a/classes/local/hook_callbacks.php b/classes/local/hook_callbacks.php index 4f71189..91121f2 100644 --- a/classes/local/hook_callbacks.php +++ b/classes/local/hook_callbacks.php @@ -39,7 +39,6 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class hook_callbacks { - /** * Hook listener for before_http_headers hook. * diff --git a/classes/migrationhelper.php b/classes/migrationhelper.php index 5a8b0a7..1fdd215 100644 --- a/classes/migrationhelper.php +++ b/classes/migrationhelper.php @@ -22,7 +22,7 @@ * @package mod_learningmap * @copyright 2024 ISB Bayern * @author Stefan Hanauska - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class migrationhelper { /** diff --git a/classes/task/fill_backlink_cache.php b/classes/task/fill_backlink_cache.php index 92d5221..a5e05cf 100644 --- a/classes/task/fill_backlink_cache.php +++ b/classes/task/fill_backlink_cache.php @@ -24,7 +24,7 @@ * @package mod_learningmap * @copyright 2021-2024, ISB Bayern * @author Stefan Hanauska - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class fill_backlink_cache extends \core\task\scheduled_task { /** diff --git a/db/services.php b/db/services.php index 306c593..b1ba2af 100644 --- a/db/services.php +++ b/db/services.php @@ -20,7 +20,7 @@ * @package mod_learningmap * @copyright 2021-2024, ISB Bayern * @author Philipp Memmel - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die; diff --git a/db/tasks.php b/db/tasks.php index ea21b6a..849219c 100644 --- a/db/tasks.php +++ b/db/tasks.php @@ -20,7 +20,7 @@ * @package mod_learningmap * @copyright 2021-2024, ISB Bayern * @author Stefan Hanauska - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); diff --git a/db/upgrade.php b/db/upgrade.php index dd22c39..8765501 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -20,7 +20,7 @@ * @package mod_learningmap * @copyright 2021-2024, ISB Bayern * @author Stefan Hanauska - * @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** diff --git a/environmentchecks.php b/environmentchecks.php index 89208d0..60d7748 100644 --- a/environmentchecks.php +++ b/environmentchecks.php @@ -20,7 +20,7 @@ * @package mod_learningmap * @copyright 2021-2024, ISB Bayern * @author Stefan Hanauska - * @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** diff --git a/index.php b/index.php index a31bfe9..885b4be 100644 --- a/index.php +++ b/index.php @@ -20,7 +20,7 @@ * @package mod_learningmap * @copyright 2021-2024, ISB Bayern * @author Stefan Hanauska - * @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once("../../config.php"); diff --git a/tests/mod_learningmap_activitymanager_test.php b/tests/mod_learningmap_activitymanager_test.php index ff22483..f6d4008 100644 --- a/tests/mod_learningmap_activitymanager_test.php +++ b/tests/mod_learningmap_activitymanager_test.php @@ -34,7 +34,7 @@ * @group mebis * @covers \mod_learningmap\activitymanager */ -class mod_learningmap_activitymanager_test extends mod_learningmap_testcase { +final class mod_learningmap_activitymanager_test extends mod_learningmap_testcase { /** * Activitymanager instance for testing. * @var activitymanager $activitymanager diff --git a/tests/mod_learningmap_backlink_cache_test.php b/tests/mod_learningmap_backlink_cache_test.php index d4941a7..07f2576 100644 --- a/tests/mod_learningmap_backlink_cache_test.php +++ b/tests/mod_learningmap_backlink_cache_test.php @@ -28,7 +28,7 @@ * @covers ::learningmap_before_http_headers() * @covers \mod_learningmap\cachemanager */ -class mod_learningmap_backlink_cache_test extends \advanced_testcase { +final class mod_learningmap_backlink_cache_test extends \advanced_testcase { /** @var array $courses Courses used for testing */ private array $courses; diff --git a/tests/mod_learningmap_completion_test.php b/tests/mod_learningmap_completion_test.php index 60bedae..6bcc619 100644 --- a/tests/mod_learningmap_completion_test.php +++ b/tests/mod_learningmap_completion_test.php @@ -35,7 +35,7 @@ * @group mebis * @covers \mod_learningmap\completion\custom_completion */ -class mod_learningmap_completion_test extends mod_learningmap_testcase { +final class mod_learningmap_completion_test extends mod_learningmap_testcase { /** * Tests completiontype 1 in individual mode * diff --git a/tests/mod_learningmap_generation_test.php b/tests/mod_learningmap_generation_test.php index 0979b81..78360a0 100644 --- a/tests/mod_learningmap_generation_test.php +++ b/tests/mod_learningmap_generation_test.php @@ -27,7 +27,7 @@ * @group mebis * @covers \mod_learningmap_generator */ -class mod_learningmap_generation_test extends \advanced_testcase { +final class mod_learningmap_generation_test extends \advanced_testcase { /** * Tests the data generator for this module * diff --git a/tests/mod_learningmap_mapworker_test.php b/tests/mod_learningmap_mapworker_test.php index a2487e6..778223e 100644 --- a/tests/mod_learningmap_mapworker_test.php +++ b/tests/mod_learningmap_mapworker_test.php @@ -28,7 +28,7 @@ * @group mebis * @covers \mod_learningmap\mapworker */ -class mod_learningmap_mapworker_test extends \advanced_testcase { +final class mod_learningmap_mapworker_test extends \advanced_testcase { /** * The course used for testing * diff --git a/tests/mod_learningmap_testcase.php b/tests/mod_learningmap_testcase.php index ab6ede5..293b531 100644 --- a/tests/mod_learningmap_testcase.php +++ b/tests/mod_learningmap_testcase.php @@ -60,7 +60,7 @@ abstract class mod_learningmap_testcase extends \advanced_testcase { /** * Whether group mode is active - * @var boolean + * @var bool */ protected $groupmode;