-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from mebis-lp/develop
MBS-6126 / MBS-6127 / MBS-6063
- Loading branch information
Showing
26 changed files
with
58 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* Backup class for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* Backup steps for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* Restore class for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* Restore steps for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* Autoupdate class for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* Custom completion rules for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
* Class for handling the content of the learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* Privacy subsystem implementation for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* Capability definitions for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* Events for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* Upgrade functions for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* Index.php for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* Language file for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
@@ -34,6 +34,7 @@ | |
$string['completiondetail:all_places'] = 'Reach all places'; | ||
$string['completiondetail:all_targets'] = 'Reach all target places'; | ||
$string['completiondetail:one_target'] = 'Reach one target place'; | ||
$string['completiondisabled'] = 'Completion tracking is disabled in course settings. Without completion tracking this plugin won\'t work.'; | ||
$string['completiontype'] = 'Type of completion'; | ||
$string['editorhelp'] = 'How to use the editor'; | ||
$string['editplace'] = 'Edit place'; | ||
|
@@ -52,6 +53,7 @@ | |
$string['name'] = 'Learning map name'; | ||
$string['name_help'] = 'The name of the learning map is only displayed if the "Show map on course page" is not checked.'; | ||
$string['nocompletion'] = 'No completion with map items'; | ||
$string['nocompletionenabled'] = 'Not available because completion is not enabled'; | ||
$string['paths'] = 'Paths'; | ||
$string['places'] = 'Places'; | ||
$string['pluginadministration'] = 'Learning map administration'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* Library for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
* Editing form for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
@@ -54,9 +54,13 @@ public function definition() : void { | |
$s['coursemodules'] = []; | ||
foreach ($section as $cmid) { | ||
$module = $cm->get_cm($cmid); | ||
// Get only course modules with completion enabled and not deleted. | ||
if ($module->completion > 0 && $module->deletioninprogress == 0) { | ||
$s['coursemodules'][] = ['id' => $cmid, 'name' => $module->name]; | ||
// Get only course modules which are not deleted. | ||
if ($module->deletioninprogress == 0) { | ||
$s['coursemodules'][] = [ | ||
'id' => $cmid, | ||
'name' => $module->name, | ||
'completionenabled' => $module->completion > 0 | ||
]; | ||
} | ||
} | ||
$activitysel[] = $s; | ||
|
@@ -80,7 +84,10 @@ public function definition() : void { | |
'html', | ||
$OUTPUT->render_from_template( | ||
'mod_learningmap/formitem', | ||
['sections' => $activitysel, 'help' => $OUTPUT->help_icon('intro', 'learningmap', '')] | ||
['sections' => $activitysel, | ||
'help' => $OUTPUT->help_icon('intro', 'learningmap', ''), | ||
'completiondisabled' => $cm->get_course()->enablecompletion == 0 | ||
] | ||
) | ||
); | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* Admin settings for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,7 @@ | |
.learningmap-used-activity { | ||
color: green; | ||
} | ||
|
||
.learningmap-disabled-activity { | ||
color: lightsalmon; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* mod_learningmap data generator | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* Unit test for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
* @group mod_learningmap | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* Unit test for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
* @group mod_learningmap | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,14 +18,14 @@ | |
* Version information for mod_learningmap | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
defined('MOODLE_INTERNAL') || die(); | ||
|
||
$plugin->component = 'mod_learningmap'; | ||
$plugin->release = '0.4'; | ||
$plugin->version = 2022012701; | ||
$plugin->release = '0.4.1'; | ||
$plugin->version = 2022013101; | ||
$plugin->requires = 2020061500; | ||
$plugin->maturity = MATURITY_BETA; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* View a learning map instance | ||
* | ||
* @package mod_learningmap | ||
* @copyright 2021, ISB Bayern | ||
* @copyright 2021-2022, ISB Bayern | ||
* @author Stefan Hanauska <[email protected]> | ||
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU AGPL v3 or later | ||
*/ | ||
|