-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
406 additions
and
209 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ out/ | |
docs/ | ||
node_modules/ | ||
vendor/ | ||
t |
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 |
---|---|---|
|
@@ -18,6 +18,18 @@ See the [migration guide](https://github.com/KQMATH/moodle-mod_capquiz/wiki/Migr | |
|
||
+ [CAPQuiz](https://moodle.org/plugins/pluginversions.php?plugin=mod_capquiz) in the Moodle Plugin Repository | ||
|
||
## Known Bugs | ||
|
||
1. Users have to take care not to delete questions used by | ||
instances of CAPQuiz. At present, there is no mechanism to | ||
prevent accidental deletion. | ||
2. Issues have been reported with the class list in old quizzes | ||
after upgrading to the most recent versions. New quizzes created | ||
in the new version seem to work as they should. | ||
3. Further testing is required, so if you use CAPQuiz, please report | ||
any trouble, preferably using | ||
[githun issues](https://github.com/KQMATH/moodle-mod_capquiz/issues). | ||
|
||
## History | ||
The idea of an adaptive learning system at NTNU in Ålesund (then Ålesund University College) was first conceived by Siebe van Albada. His efforts led to a prototype, known as [MathGen](https://github.com/MathGen/oppgavegenerator), written as a standalone server in python. | ||
|
||
|
@@ -28,7 +40,7 @@ CAPQuiz includes the work of many [contributors](https://github.com/KQMATH/moodl | |
|
||
**Project lead:** Hans Georg Schaathun: <[email protected]> | ||
|
||
**Developers:** | ||
**Previos Developers:** | ||
* Aleksander Skrede <[email protected]> | ||
* Sebastian S. Gundersen <[email protected]> | ||
* [André Storhaug](https://github.com/andstor) <[email protected]> | ||
|
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?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/>. | ||
|
||
namespace mod_capquiz\bank; | ||
|
||
/** | ||
* A column type for the add this question to the quiz action. | ||
* | ||
* This class is copied to CAPQuiz from the Core Quiz, without | ||
* modification (as of Fri 9 Sep 08:29:48 UTC 2022 ). | ||
* | ||
* @package mod_capquiz/mod_quiz | ||
* @category question | ||
* @copyright 2009 Tim Hunt | ||
* @author 2021 Safat Shahin <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class add_action_column extends \core_question\local\bank\action_column_base { | ||
|
||
/** @var string caches a lang string used repeatedly. */ | ||
protected $stradd; | ||
|
||
public function init(): void { | ||
parent::init(); | ||
$this->stradd = get_string('addtoquiz', 'quiz'); | ||
} | ||
|
||
public function get_name() { | ||
return 'addtoquizaction'; | ||
} | ||
|
||
protected function display_content($question, $rowclasses) { | ||
if (!question_has_capability_on($question, 'use')) { | ||
return; | ||
} | ||
$this->print_icon('t/add', $this->stradd, $this->qbank->add_to_quiz_url($question->id)); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.