Git commits in Moodle x.x.x by kaipe

commit efa9b7fa01ef37de6d0fb226c7797e87c0c86ecd
Author: kaipe <kaipe>
Date:   Tue, 18 Jan 2005 04:14:16 +0800
Tag:    v1.5.0

Fixed a bug that was reported by James Balfour: Numerical/Calculated questions failed to grade negative responses on questions with units.

commit d70ccc495ca904789940f281655b94d9a8e8637b
Author: kaipe <kaipe>
Date:   Mon, 03 Jan 2005 08:41:33 +0800
Tag:    v1.5.0

New feature: Maximum-number-of-questions-per-page

commit c03d783201a31ddb5686ace68f7442251fac2ef8
Author: kaipe <kaipe>
Date:   Sat, 18 Dec 2004 21:55:18 +0800
Tag:    v1.5.0

Question type RANDOM now stores responses just like any other question type. Therefore all workarounds are removed from lib.php and an isolated workaround is included in random/questiontype.php in order to ensure backward compability.

commit 180bcb27405d684e33cfa0425c6e0362fdb0524f
Author: kaipe <kaipe>
Date:   Sun, 05 Dec 2004 21:02:49 +0800
Tag:    v1.5.0

New feature that makes it possible to specify the number of decimals for the correct answer in calculated questions as well as some minor refactoring and debugging.

commit 2ad1b388f7117724bab07ebdfe087a4201d51558
Author: kaipe <kaipe>
Date:   Sun, 05 Dec 2004 20:56:01 +0800
Tag:    v1.5.0

Updating database and backup/restore in order to make it possible for teachers to choose number of decimals for calculated questions. Can someone please check if the database update for postgres7 turns out alright?

commit 813ac2e00a788d363d7f134ed7c81215caa1f79f
Author: kaipe <kaipe>
Date:   Sun, 14 Nov 2004 03:25:13 +0800
Tag:    v1.5.0

The previous update was supposed to be an enlargement of answer in quiz_responses (not quiz_answers) It is now correct and the mistake never made it to the stable version smile

commit c4fb19504670a00627fedccbb280e0425012f95a
Author: kaipe <kaipe>
Date:   Sun, 14 Nov 2004 02:51:47 +0800
Tag:    v1.5.0

Fixed a typo that was introduced with revision 1.4 - I believe that revision must have been developed with some sort of script...

commit 401f9a6a7839481edeb28e38a8687430bc4703de
Author: kaipe <kaipe>
Date:   Sun, 14 Nov 2004 02:29:25 +0800
Tag:    v1.5.0

Changed to absolute path for reaching the questiontype dependent editing page layout file. This should increase robustness - some installations have faced problems with the previously used relative references.

commit 80acb051d99af7519b9079c20b0274936320e5f5
Author: kaipe <kaipe>
Date:   Sun, 14 Nov 2004 02:18:06 +0800
Tag:    v1.5.0

Fixed typo

commit 84250ebb1248e259e706bd5eedfe63668af00194
Author: kaipe <kaipe>
Date:   Thu, 16 Sep 2004 14:35:49 +0800
Tag:    v1.5.0

Fixes bug #1854

commit f0c60b0a048c6850acea95b997ec3c1adfe59628
Author: kaipe <kaipe>
Date:   Mon, 23 Aug 2004 05:34:47 +0800
Tag:    v1.4.0

*** empty log message ***

commit 7acaafc87eda6d375ca133487e0c1f43dfd79da3
Author: kaipe <kaipe>
Date:   Sun, 08 Aug 2004 20:08:08 +0800
Tag:    v1.4.0

Support for CALCULATED questions These are much more complex than all qtype already supported so I have been pretty hard on the existing code. I could not figure out what mathematical functions need to be converted from webct to PHP format. The only function I have converted so far is the webct x**y that was converted to PHP pow(x,y)

commit 908a708e7cf07cc0f9efec622b1268e1d76018ae
Author: kaipe <kaipe>
Date:   Sun, 08 Aug 2004 19:31:40 +0800
Tag:    v1.4.0

Fixed a bug Cleaned out a flaw that ruled out generation of negative random numbers

commit d02ad0f9c299841a41ec63344876aec2329f5994
Author: kaipe <kaipe>
Date:   Thu, 05 Aug 2004 17:53:17 +0800
Tag:    v1.4.0

New page quiz/questiontypes/datasetdependent/categorydatasetdefinitions.php?category=XX offers a simple editing view for category reusable dataset definitions. It is unlinked but can be reached by specifying the URL or having a question edit page link it in the future.

commit 79a44f05a9247908dc88014cc12a45e8baf80fc4
Author: kaipe <kaipe>
Date:   Thu, 05 Aug 2004 07:35:18 +0800
Tag:    v1.4.0

Took care of some issues concerning the use of individual quiz files in datasetdependent questions

commit f7dea937e6a7437d70046dca0d15d9e5d937037d
Author: kaipe <kaipe>
Date:   Wed, 04 Aug 2004 22:09:19 +0800
Tag:    v1.4.0

Updates that make it possible to override the options queries This makes it easier to use this question type as the virtual question type for dataset dependent question types

commit a753b153ded83661abffdd460a0ea51fb4afd4b7
Author: kaipe <kaipe>
Date:   Tue, 03 Aug 2004 20:16:55 +0800
Tag:    v1.4.0

DEBUGGED Icon images did not have any closing " for attribute SRC

commit 39fbd5c81807a4f0565e1a674033c3a03a1ce3dc
Author: kaipe <kaipe>
Date:   Mon, 02 Aug 2004 06:22:20 +0800
Tag:    v1.4.0

Added support for some PHP style mathematical functions in the correct answer formula for calculated questions Documentation on the functions can be found at http://uk.php.net/manual/en/ref.math.php

commit dee898f1842fc8caf01ebafe673b6cc20db6e993
Author: kaipe <kaipe>
Date:   Fri, 30 Jul 2004 22:54:45 +0800
Tag:    v1.4.0

Additions to support units for numerical questions, as well as some terminology for the new features dataset-dependent questions and calculated questions

commit 2443a13e754998cdf81d50930e7f4dc0acd3e50b
Author: kaipe <kaipe>
Date:   Fri, 30 Jul 2004 22:50:58 +0800
Tag:    v1.4.0

New generic tools that allow the creation of dataset-dependent questions as well as the new question type Calculated that uses this generic support.

commit 7a82d193240ab6a3df435ac2c89821864d5d2ee4
Author: kaipe <kaipe>
Date:   Fri, 30 Jul 2004 22:43:08 +0800
Tag:    v1.4.0

New feature Unit support for numerical questions

commit 8c5a95facbeff21a356396a588446ed77713cb9e
Author: kaipe <kaipe>
Date:   Fri, 30 Jul 2004 22:40:16 +0800
Tag:    v1.4.0

Database update to support new question type Calculated as well as units for Calculated and Numerical questions

commit 63c86231b921b52b0a60ebdba71af9da7a1d96f7
Author: kaipe <kaipe>
Date:   Sat, 17 Jul 2004 07:10:34 +0800
Tag:    v1.4.0

file random.html was initially added on branch MOODLE_13_QUIZREFACTOR.

commit 54b47619fa6f99b6b38dcbf3468f00001094cdad
Author: kaipe <kaipe>
Date:   Sat, 17 Jul 2004 07:10:34 +0800
Tag:    v1.4.0

file shortanswer.html was initially added on branch MOODLE_13_QUIZREFACTOR.

commit 075fa91dbe5821ca43e6a58c7bfc137eed84edf0
Author: kaipe <kaipe>
Date:   Sat, 17 Jul 2004 07:10:34 +0800
Tag:    v1.4.0

file truefalse.html was initially added on branch MOODLE_13_QUIZREFACTOR.

commit 88bf015d6fd128e667a74b876ae5280deb62b02e
Author: kaipe <kaipe>
Date:   Sat, 17 Jul 2004 07:10:34 +0800
Tag:    v1.4.0

file editquestion.php was initially added on branch MOODLE_13_QUIZREFACTOR.

commit 07b3c9f2b3f5289ad26b55d8af705cf9f431e2ae
Author: kaipe <kaipe>
Date:   Sat, 17 Jul 2004 07:10:34 +0800
Tag:    v1.4.0

file randomsamatch.html was initially added on branch MOODLE_13_QUIZREFACTOR.

commit f36e96a1b7cd92d4e9d030507df04ca865bb326c
Author: kaipe <kaipe>
Date:   Sat, 17 Jul 2004 07:10:33 +0800
Tag:    v1.4.0

file description.html was initially added on branch MOODLE_13_QUIZREFACTOR.

commit 234c8f06376010c32c4142e7d2c1ac9ca86ad732
Author: kaipe <kaipe>
Date:   Sat, 17 Jul 2004 07:10:33 +0800
Tag:    v1.4.0

file match.html was initially added on branch MOODLE_13_QUIZREFACTOR.

commit 45bab286ba016736ad3e28d5dcbaa86da806c112
Author: kaipe <kaipe>
Date:   Sat, 17 Jul 2004 07:10:33 +0800
Tag:    v1.4.0

file multianswer.html was initially added on branch MOODLE_13_QUIZREFACTOR.

commit 8980bf63a2897dc5d32cd2516b7c034e4af382d8
Author: kaipe <kaipe>
Date:   Sat, 17 Jul 2004 07:10:33 +0800
Tag:    v1.4.0

file multichoice.html was initially added on branch MOODLE_13_QUIZREFACTOR.

commit 19f63aadae6b4431534f9ae81197f661e7422f96
Author: kaipe <kaipe>
Date:   Sat, 17 Jul 2004 07:10:33 +0800
Tag:    v1.4.0

file numerical.html was initially added on branch MOODLE_13_QUIZREFACTOR.

commit 0ce447d5332c3481c1b946275ddaa24da04e8790
Author: kaipe <kaipe>
Date:   Sat, 03 Jul 2004 18:11:33 +0800
Tag:    v1.4.0

file questiontype.php was initially added on branch MOODLE_13_QUIZREFACTOR.

commit 85a93d9a33e363c811b58999f652446de3f58811
Author: kaipe <kaipe>
Date:   Sat, 03 Jul 2004 18:11:33 +0800
Tag:    v1.4.0

file icon.gif was initially added on branch MOODLE_13_QUIZREFACTOR.

commit e72a2e6d638ac8d2de30a844a121fde2d64bad39
Author: kaipe <kaipe>
Date:   Thu, 01 Jan 2004 23:12:16 +0800
Tag:    v1.2.0

As this page uses the multianswer import format, the require_once statements have been updated to fit the new plug-in paths for the import formats.

commit 5276dc48877ffb57855f394b762915f204a49205
Author: kaipe <kaipe>
Date:   Thu, 01 Jan 2004 23:01:29 +0800
Tag:    v1.2.0

Short-answer fixes: As the wild card feature makes it possible for a response to match more than one answer alternative, I made sure that the alternative with the highest grade would count. I also fixed bug #945 for the short answer case.

commit 0226a97d31f77f72ba32f662a29cf1efdace8b58
Author: kaipe <kaipe>
Date:   Thu, 01 Jan 2004 20:47:50 +0800
Tag:    v1.2.0

Fixed bug that could cause duplication of attempt numbers. This bug came to the surface when the possibility to delete attempts was introduced in report/overview/report.php

commit e097165541dfe270c6c6e71ac30e5c6207e360a5
Author: kaipe <kaipe>
Date:   Thu, 01 Jan 2004 03:22:38 +0800
Tag:    v1.2.0

Fixed a single/double quote issue (again)

commit 1e085edc4397ebe19049038444757e76e288d5a7
Author: kaipe <kaipe>
Date:   Thu, 11 Dec 2003 04:03:59 +0800
Tag:    v1.2.0

The Quizzes page is given an "Edit questions" button that links to a possibility to edit questions without opening a quiz.

commit 7c9c2a8da68f420a8fa04ae1a90493a1dbe4f633
Author: kaipe <kaipe>
Date:   Fri, 21 Nov 2003 03:39:08 +0800
Tag:    v1.2.0

Made it possble to give negative grades for single multichoice answers in a question with embedded answers, as suggested by Koen Roggemans. The total score of the whole question must still be greater than or equeal to zero.

commit b63519ebda1cac0aab80f4524316345d1f97b718
Author: kaipe <kaipe>
Date:   Fri, 21 Nov 2003 02:39:25 +0800
Tag:    v1.2.0

Added simplified aliases for answer types, as proposed by Thomas Robb. It is now possible to use these aliases: SHORTANSWER = SA = MW ; NUMERICAL = NM ; MULTICHOICE = MC

commit fe98ea90f9a0163eaa25cbbe2ea296fc38a45a14
Author: kaipe <kaipe>
Date:   Mon, 03 Nov 2003 05:36:25 +0800
Tag:    v1.2.0

The new quizfile.php makes it possible to view associated file material on quizes, such as images, even for questions belonging to a category on a different course. lib.php is updated accordingly...

commit 004c02e05c109ba44044eeedb7d7e9689f1b5b02
Author: kaipe <kaipe>
Date:   Sat, 01 Nov 2003 05:27:43 +0800
Tag:    v1.2.0

An improvement asked for by koen roggemans: Especially for multianswer questions it is often desirable to have the grade of the question in a quiz larger than the earlier maximum of 10 points. The new function quiz_gradesmenu_options($defaultgrade) makes quiz question list grade selector drop-down have the maximum grade option set to the highest value between 10 and the defaultgrade of the question.

commit 5a22076b10abf4d20e1c9cc0f6ce25ae725e065b
Author: kaipe <kaipe>
Date:   Sat, 23 Aug 2003 02:20:04 +0800
Tag:    v1.1.0

Correction

commit 1ecbe2c4760ac38b0ec1c76ea3d18221489c9c76
Author: kaipe <kaipe>
Date:   Sat, 23 Aug 2003 02:18:09 +0800
Tag:    v1.1.0

All question types now have help texts in Swedish

commit f5626b4c6b418da1789da4980bf4224e620c53b4
Author: kaipe <kaipe>
Date:   Fri, 22 Aug 2003 23:58:57 +0800
Tag:    v1.1.0

Corrected the help text for numerical.html and also included Numerical in questiontypes.html

commit bb9d73d9e15c47efa8e2f817bbcc9fdb576ea8ab
Author: kaipe <kaipe>
Date:   Fri, 22 Aug 2003 21:44:12 +0800
Tag:    v1.1.0

Corrected translation

commit bfe3068c7838a6acd3b41f83004f9fa3494e41ad
Author: kaipe <kaipe>
Date:   Fri, 22 Aug 2003 21:34:41 +0800
Tag:    v1.1.0

*** empty log message ***

commit 608ed9800d3f8f7ef69667f287057e457a6bbe71
Author: kaipe <kaipe>
Date:   Mon, 11 Aug 2003 20:37:54 +0800
Tag:    v1.1.0

Debug This fix rids warnings that used to come when a student for the first time attempts a quiz with the option "Each attempt builds on the last" = Yes (attemptonlast). Now the option is not in effect when a student attempts a quiz for the first time, i.e. when there is no last attempt to build on.

commit 85c06eab07ac73b4d0a2daf90235e8bfc8aaea47
Author: kaipe <kaipe>
Date:   Mon, 11 Aug 2003 19:47:30 +0800
Tag:    v1.1.0

quiz option - "Each attempt builds on the last"

commit 175462491693534dfc8bfa94549f3537611da798
Author: kaipe <kaipe>
Date:   Sun, 10 Aug 2003 20:09:49 +0800
Tag:    v1.1.0

Fixed bug that was pointed out by Tom Cat: The reuse of old quiz_answers records for question type multianswer/embedded did not work properly.

commit 5ee8d89f659264735638b42e5fb5d8b361911ce5
Author: kaipe <kaipe>
Date:   Tue, 05 Aug 2003 19:39:49 +0800
Tag:    v1.1.0

The message "Recently added question!" is shown for questions that have been added since the reviewed attempt was finished. Closing bug #576

commit 586b2c82ed58196ad9df5f91da6ab5c451b10afd
Author: kaipe <kaipe>
Date:   Mon, 04 Aug 2003 07:00:45 +0800
Tag:    v1.1.0

New quiz option - "Each attempt builds on the last" This makes it possible for students to take a tedious quiz, save it half-way and have it graded. The student can then, at a later point, get back to the quiz and have the previous answers already filled in and graded. The student can then continue with the remaining questions as well as redo all the answers that got wrong at the previous attempt. It seems to work fine with one little twisted exception: Say that the student attempts the quiz first and that the teacher thereafter edits the quiz and removes or adds a few questions. This will work out fine for as long as the teacher do not get the idea of adding a question with question type RANDOM. The quiz will be fully functional again after removing that RANDOM question or resetting the option 'Each attempt builds on the last" to NO. Not a very serious problem but it takes someone with greater insight in question type RANDOM to resolve it.

commit 0f36ecb9ea9634c6b0732ebf06bc36707d3ecba6
Author: kaipe <kaipe>
Date:   Mon, 04 Aug 2003 06:54:02 +0800
Tag:    v1.1.0

New quiz option - "Each attempt builds on the last" This makes it possible for students to take a tedious quiz, save it half-way and have it graded. The student can then, at a later point, get back to the quiz and have the previous answers already filled in and graded. The student can then continue with the remaining questions as well as redo all the answers that got wrong at the previous attempt. It seems to work fine with one little twisted exception: Say that the student attempts the quiz first and that the teacher thereafter edits the quiz and removes or adds a few questions. This will work out fine for as long as the teacher do not get the idea of adding a question with question type RANDOM. The quiz will be fully functional again after removing that RANDOM question or resetting the option 'Each attempt builds on the last" to NO. Not a very serious problem but it takes someone with greater insight in question type RANDOM to resolve it.

commit 5a24a01868d9e263c592579085b7eaeb2aa77e50
Author: kaipe <kaipe>
Date:   Mon, 04 Aug 2003 05:39:32 +0800
Tag:    v1.1.0

Resolving bug #576. This solution shows the message "Recently added question!" and the question text for each question that has been added since the reviewed attempt. The advantage with the chosen solution is that it will work fine for the (soon to come) "Each attempt builds on the last" quiz option.

commit bdb63d64f2625312ad7f7266ddaa59dc40103650
Author: kaipe <kaipe>
Date:   Mon, 04 Aug 2003 04:02:43 +0800
Tag:    v1.1.0

Debugged question types NUMERICAL and MULTIANSWER (known as embedded answers) as these did not do things right whenever a student had not given any response (was treated as zero etc). For numerical there was also a need to allow typical shortanswer responses whenever there could be answers like n/a, inf, -inf, nan etc. Further more about numerical, there can be more than one answer alternative defined (just like for shortanswer). This is not supported by numerical.html but everywhere else. MULTIANSWER included, it is up to any taker to update numerical.html. This is more than likely to lead to overlappings between numerical ranges if more than one is defined. Think of the case where the highest grade answer ranges between 0 and 2 and the half grade answer ranges between 2 and 4. How should we grade 2? We should pick the highest grade!

commit 2e3e1ac76b543f42c82c9c922e61705282361aa8
Author: kaipe <kaipe>
Date:   Fri, 01 Aug 2003 21:24:05 +0800
Tag:    v1.1.0

Added the choice of 16.666% for multichoice fraction

commit 8b439f8c164c15d39c3fa1bec029b616df5281dc
Author: kaipe <kaipe>
Date:   Fri, 01 Aug 2003 16:37:11 +0800
Tag:    v1.1.0

New question type - multianswer

commit 44fc346f459c6ebd50585a31ec5117435b35afb2
Author: kaipe <kaipe>
Date:   Tue, 29 Jul 2003 17:11:06 +0800
Tag:    v1.1.0

Refactoring only, no new features - Modified methods are quiz_get_answers and quiz_grade_attempt_results. For quiz_grade_attempt_results, the switch statement has been separated out into method quiz_grade_attempt_question_result.