Commit graph

123 commits

Author SHA1 Message Date
gustav_delius
a08e9552fa More steps towards the separation of questions from the quiz module. 2005-07-03 09:53:02 +00:00
gustav_delius
d115d8c736 I have introduced the new field $attempt->uniqueid, see http://mantis.york.ac.uk/moodle/mod/forum/discuss.php?d=852#3380 2005-07-02 18:14:51 +00:00
gustav_delius
ad7e7ba882 Two name changes:
1) in all module-indpendent code the variable $quiz has been renamed to $cmoptions (it holds the options set by the course module which does not necessarily have to be a quiz, it could be a lesson for example).
2) quiz_restore_question_sessions() has the simpler name quiz_get_states
Also got rid of the quizfile.php in favour of file.php
2005-07-02 16:07:05 +00:00
gustav_delius
0d156caaae I have started on the re-organisation to allow other modules to use the questiontypes.
Moved all code that is not specific to the quiz module out of locallib.php into questionlib.php.
The default questiontype class is now defined in quiz/questiontypes/questiontype.php.
See http://mantis.york.ac.uk/moodle/mod/forum/discuss.php?d=852
2005-07-02 11:42:42 +00:00
gustav_delius
ed460c8e04 I am committing the essay question type contributed by Mark Nielsen, see http://moodle.org/mod/forum/discuss.php?d=25845. 2005-06-26 16:21:11 +00:00
gustav_delius
39395fd60b merged from stable 2005-06-12 09:57:13 +00:00
gustav_delius
fc44ee0de8 Merged from stable 2005-06-05 20:51:15 +00:00
gustav_delius
7bbe08a267 Merged from stable 2005-06-04 09:58:35 +00:00
stronk7
3686d611d9 Simplify the quizzes_category_used() function.
I was using the $excluded parameter to avoid
loops between categories. A->B->A. Think we can
assume such loops won't exist, so I've deleted
the $excluded use.

Merged from MOODLE_15_STABLE
2005-05-31 16:33:18 +00:00
thepurpleblob
55631ee73a Merged from STABLE 2005-05-31 13:35:15 +00:00
thepurpleblob
8cedc8a7f5 Merged changes from STABLE 2005-05-31 10:12:13 +00:00
stronk7
ca653ec706 Added the sort_categories_by_tree() function that
returns an ordered array of categories following
the parent-child relationships. It doesn't forget
any category and returns all the categories passed
although their parent were incorrect. Try to build
as much tree structure as possible.

Merged from MOODLE_15_STABLE
2005-05-30 23:59:42 +00:00
stronk7
b5b6aa75a1 Now the quizzes_category_used() function supports searching
for uses recursively plus an array of excluded categories.

Needed to solve bug 2459...in progress.

Merged from MOODLE_15_STABLE
2005-05-30 22:29:47 +00:00
stronk7
0ca4fa367c Added the quizzes_category_used() to detect the list of
quizzes that are using questions from one category.

It relies in the quizzes_question_used() function. Will
be use in the 'orphan_categories' bug (#2459)

(http://moodle.org/bugs/bug.php?op=show&bugid=2459)

Merged from MOODLE_15_STABLE

With some previously unmerged changes added too!! Please check them
Gustav!!
2005-05-29 19:02:51 +00:00
gustav_delius
a472ce5960 New version of item analysis from Enrique 2005-05-23 07:25:33 +00:00
mindforge
920fb237c4 In locallib the function quiz_restore_question_sessions did not load the timestamp field for states. This was fixed by replacing the list of fields in the query by a s.* 2005-05-20 11:44:59 +00:00
gustav_delius
67f74fec53 Some code cleanup: the function extract_response() is not used any more 2005-05-18 19:59:12 +00:00
gustav_delius
278553ffdc Avoid break between answer and feedback in multiple choice question 2005-05-18 03:00:55 +00:00
stronk7
87dddc1445 Replaced some (not all) tabs to spaces.
I've leave unmodified formats and nusoap library
2005-05-16 22:51:16 +00:00
gustav_delius
1f48479ebf quiz_upgrade_states() now creates entries in the quiz_newest_states table only for states that are associated to those questions that are listed in $attempt->layout. 2005-05-16 19:21:34 +00:00
gustav_delius
1b6fe5003a Removed some notices, some polishing.
No need to load all users and then remove teachers, can simply load all students.
2005-05-15 19:37:37 +00:00
gustav_delius
af4ed42f9f fixed bug 3258 2005-05-15 16:06:17 +00:00
gustav_delius
0fc5939983 item analysis report contributed by Enrique Castro 2005-05-15 14:40:38 +00:00
gustav_delius
488cf46b65 Cleaned up issues to do with timing. So for example late submissions are now detected correctly. 2005-05-15 11:45:12 +00:00
gustav_delius
a0a3649235 Don't show penalty info if penaltyscheme is off. 2005-05-14 19:20:36 +00:00
gustav_delius
815bb0cf32 There can now be an arbitrary number of rqp servers of each type.
The remote question types do show up on the editing drop-down like any other question type.
I have disabled rqp on php < 5 for the time being.
2005-05-14 16:21:11 +00:00
thepurpleblob
ab83607e8b Altered quiz export get_category_questions function to (optionally)
reject questions with parents.
2005-05-11 09:55:48 +00:00
gustav_delius
bae2f74800 grading details should be shown in non-adaptive mode 2005-05-10 15:51:15 +00:00
gustav_delius
9b1a258947 just fixing my earlier fix 2005-05-10 15:34:08 +00:00
gustav_delius
c4aff6543c Fixed bug reported at http://moodle.org/mod/forum/discuss.php?d=23526 2005-05-10 15:00:27 +00:00
thepurpleblob
683f250a40 Removed functions that build objects for question export. Now done
using existing functions in questiontype classes.
2005-05-09 10:20:19 +00:00
thepurpleblob
161568f72c Oops! It's a call by reference! 2005-05-09 08:40:37 +00:00
thepurpleblob
7132ca0146 Now calls get_question_option() in appropriate question_type to get question
objects for quiz export. Bad news is that format is different, so all export
classes will need modifying. Will remove old code when complete.
2005-05-09 08:28:09 +00:00
gustav_delius
3e34b1dc14 Changed table field name 'new' to 'newest' for postgres compatibility 2005-05-08 10:35:47 +00:00
gustav_delius
75e1df6fd2 "Attempt builds on last" feature reenabled 2005-05-07 18:50:32 +00:00
gustav_delius
89cae10a6e Some corrections in the documentation 2005-05-07 17:18:53 +00:00
gustav_delius
a5c53187cc enabled penalties for all question types 2005-05-07 14:29:42 +00:00
gustav_delius
1105b32da0 Use round() instead of format_float() to limit decimal points to a MAXIMUM of $quiz->decimalpoints. format_float() always displays EXACTLY that number of digits after the decimal point which is not really desirable. 2005-05-07 13:48:25 +00:00
gustav_delius
ef76e0326d Some work on the penalty mechanism. Took out the multiplicative scheme because it is just too difficult to understand. Made all question types print grading details when quiz is in adaptive mode. Made improvements to the presentation of the grading details. Enabled the penalty mechanism in a few more (on my way towards doing it for all). 2005-05-07 13:30:35 +00:00
gustav_delius
c14199770b Fix tooltip on question edit link, see bug 3139 2005-05-06 11:21:00 +00:00
gustav_delius
43bc8c2929 In non-adaptive mode the mark is printed as in the old days and not as --/n 2005-05-06 07:36:54 +00:00
gustav_delius
ee1fb969c8 Merging in from the MOODLE_15_QUIZREFACTOR branch.
The quiz module now can handle adaptive questions and can render remote questions via RQP web services.
2005-05-06 06:24:04 +00:00
thepurpleblob
0ae982231f Import/export changed so that available formats are automatically detected.
Classes now have discrete names and methods to identify import/export
capability added. Detecting function factored out into locallib.php
2005-04-20 09:08:25 +00:00
mjollnir_
9058e785cb Small fixes to quiz for postgres compatibility 2005-04-19 00:41:13 +00:00
stronk7
b681000402 Now quiz->name supports filterall. 2005-04-03 00:19:11 +00:00
defacer
5d38e78fdf Fixing the behavior of (de)select all javascript links, closing bug 2688.
Also, some very slight HTML improvements on the way there.
2005-03-18 14:46:11 +00:00
gustav_delius
7760f60e69 Select all / Deselect all look better as links 2005-03-18 09:21:26 +00:00
gustav_delius
19201c8dac called table column 'Action' consistently, fixing bug 2698 2005-03-08 09:31:20 +00:00
gustav_delius
9274189f25 small fix to the versioning code 2005-03-07 19:45:39 +00:00
gustav_delius
03f9425fd2 The teacher can now move selected questions to a chosen category or delete them, see http://moodle.org/mod/forum/discuss.php?d=16239 and http://moodle.org/mod/forum/discuss.php?d=19734
There is also a 'Deselect all' button which I implemented provisionally by putting an extra function checknone() into javascript-static.js. This should be cleaned up by someone who knows javascript.
2005-03-06 12:00:46 +00:00