gustav_delius
4f48fb42af
Towards removing reference to quiz module from the question code
...
Renaming tables:
quiz_questions -> question
quiz_states -> question_states
Renaming functions:
quiz_delete_question -> delete_question
quiz_get_question_options -> get_question_options
quiz_get_states -> get_question_states
quiz_restore_state -> restore_question_state
quiz_save_question_session -> save_question_session
quiz_state_is_graded -> question_state_is_graded
quiz_extract_responses -> question_extract_responses
quiz_regrade_question_in_attempt -> regrade_question_in_attempt
quiz_process_responses -> question_process_responses
quiz_isgradingevent -> question_isgradingevent($event)
quiz_search_for_duplicate_responses -> question_search_for_duplicate_responses
quiz_apply_penalty_and_timelimit -> question_apply_penalty_and_timelimit
quiz_print_question_icon -> print_question_icon
quiz_get_image -> get_question_image
quiz_make_name_prefix -> question_make_name_prefix
quiz_get_id_from_name_prefix -> question_get_id_from_name_prefix
quiz_new_attempt_uniqueid -> question_new_attempt_uniqueid
quiz_get_renderoptions -> question_get_renderoptions
quiz_print_quiz_question -> print_question
quiz_get_question_responses -> get_question_responses
quiz_get_question_actual_response -> get_question_actual_response
quiz_get_question_fraction_grade -> get_question_fraction_grade
quiz_get_default_category -> get_default_question_category
Renaming constants:
QUIZ_EVENT.... -> QUESTION_EVENT....
QUIZ_MAX_NUMBER_ANSWERS -> QUESTION_NUMANS
2006-02-28 09:26:00 +00:00
gustav_delius
03d1753c1c
Renamed table quiz_newest_states to question_sessions
2006-02-15 08:38:41 +00:00
gustav_delius
8779eab55d
Avoid error messages in case $quiz->sumgrades is zero, closing bug 4454. Merged from STABLE
2006-02-12 21:08:43 +00:00
gustav_delius
cd00e988bb
Introduced function quiz_delete_question() and questiontype methods delete_question()
2006-02-07 00:44:27 +00:00
gustav_delius
668bc1f3a6
reverting change made by Martin D when going to version 1.230
2006-02-06 20:44:43 +00:00
defacer
64f36986b6
The bug where an event was not created for closing-time-only-supplied
...
quizzes also existed when updating a quiz instance (not only adding)...
2005-11-23 22:22:44 +00:00
defacer
001996c2f2
Fix for bug 4358:
...
No "Quiz closes" event was created for quizzes which ONLY had a closing date
2005-11-23 21:34:48 +00:00
moodler
708b521a6d
Merged changes from STABLE.
...
Not sure I did the right thing on questiontypes/calculated/questiontype.php
Hope I didn't create a bug there.
(can people please remember to merge changes into head whenever they change stable?)
2005-11-01 03:29:58 +00:00
michaelpenne
275161455f
When one deletes a course, essay records in the quiz_essay are now deleted
2005-09-19 22:35:03 +00:00
patrickslee
25c4cc57f8
Corrected some table/field names (Merged from MOODLE_15_STABLE)
2005-09-19 00:25:11 +00:00
mjollnir_
f3221af9e5
Initial checkin of stats (from processing the log table).
...
I will write up some information about it for the developers wiki.
2005-09-01 04:14:31 +00:00
gustav_delius
aca55f679c
A bit of code cleanup as suggested by Olaf Rempel in bug 3881
2005-08-26 19:12:17 +00:00
gustav_delius
c0bbeb675a
Removed the restriction that the quiz timelimit has to be less than the session timeout
2005-08-26 18:47:24 +00:00
gustav_delius
9235fb7977
Removed the restriction that the quiz timelimit has to be less than the session timeout
2005-08-26 17:57:36 +00:00
gustav_delius
bb52d44c6a
Due date and start date are now optional, as requested in bug 867 and bug 3635
2005-07-07 17:16:56 +00:00
gustav_delius
7d0fdfd794
Moved constants into constants.php so that they can be loaded where needed.
2005-07-06 06:44:18 +00:00
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
stronk7
92b90adf53
Changed name of the container category a bit and avoided one notice.
...
Merged from MOODLE_15_STABLE
2005-06-04 15:42:01 +00:00
stronk7
9ea6ac5105
Complete refactor of quiz_delete_course()
...
Now this function works following this:
- Iterate over every quiz category in the course (following parent-child relationships).
- If the category is being used*, move it to site level (under a container category) and
mark it as published.
- If the category isn't being used, remove** it completely (questions, instances...) and
re-parent its child categories.
- Feedback is shown in a table detailing all the changes performed.
* One category is being used if it has one question that is being used in any quiz,
independently of its publish status.
** Removal of categories (and associated questions) has benn improved but, it won't
be perfect until bug 3366 was solved.
Tested against some large courses with reused questions and multiple levels of
categories. Seems to work but
PLEASE TEST IT AND SEND ANY FEEDBACK TO BUG 2459
(http://moodle.org/bugs/bug.php?op=show&bugid=2459 )
Exactly this function is going to be used in the upgrade script to solve
the orphan categories issue and it must work perfectly!
Merged from MOODLE_15_STABLE
2005-05-31 22:35:04 +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
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
stronk7
95c67e2fe1
Now xxx_print_recent_mod_activity() supports filterall.
...
(assignment, forum, quiz and workshop)
2005-04-02 23:19:01 +00:00
stronk7
ac21ad392d
Now course/recent.php works under PHP5.
...
See bug 2828
(http://moodle.org/bugs/bug.php?op=show&bugid=2828 )
Merged from MOODLE_14_STABLE
2005-04-02 11:32:22 +00:00
gustav_delius
1909875912
Renamed quiz_question_version to quiz_question_versions as suggested by Eloy in bug 2777
2005-03-23 20:59:55 +00:00
stronk7
e4acc4ce48
Now, at backup time (not restore yet):
...
- quiz_questions->hidden
- quiz_responses->originalquestion
- quiz_question_version table
are properly exported. Restore code coming soon.
2005-03-20 20:00:43 +00:00
defacer
c4d588cc24
Added require_once for pagelib.php.
...
Now deleting courses with these activities in works just fine once more!
2005-02-28 04:23:52 +00:00
defacer
880d86758b
Each mod is responsible to deleting its own blocks; what I had in mind for
...
centralizing this wouldn't work out. Use the flexible page_import_types so that
we don't create one more dependency when writing new code.
2005-02-28 04:18:13 +00:00
defacer
6ba37c824a
Quiz doesn't attempt to delete blocks placed in deleted quiz view pages anymore;
...
this is going to be taken care of from course/mod.php.
2005-02-28 03:59:23 +00:00
defacer
090cf95ae9
Fix for bug 2584:
...
All floatval() calls changed to (float) casts.
2005-02-18 14:42:04 +00:00
stronk7
c6e88f1059
One more use of decimalpoints
2005-02-14 19:57:45 +00:00
stronk7
95e72c12d0
Now retrieving only needed fields!
2005-02-13 00:42:29 +00:00
gustav_delius
6eaae5bdd2
fixed my own type (missing ;)
2005-02-05 20:00:15 +00:00
gustav_delius
6f7970138a
Taken out some $THEME
2005-02-05 17:28:06 +00:00
defacer
8dffa4df07
Don't forget to kill all our block instances if we are deleted.
2005-02-01 07:40:58 +00:00
defacer
d5838a4b20
Double quotes to single and blah blah.
2005-01-27 02:30:32 +00:00
defacer
9d6773603d
Minor beautification, plus a detail: if the grade is 0.0, this function
...
would return a grade of 0, which is obviously not the intent here.
2005-01-27 02:28:04 +00:00
gustav_delius
56b2152f69
better parameter validation and general code cleanup for edit.php
2005-01-22 18:17:33 +00:00
gustav_delius
4ac04efaf7
quiz edit.php now saves changes to the quiz in the database as soon as the teacher makes them, see http://moodle.org/mod/forum/discuss.php?d=17167
2005-01-22 15:42:22 +00:00
moodler
6710ec8713
Recent activity functions should have been in lib.php, not locallib.php
2005-01-13 03:04:48 +00:00
gustav_delius
76cacec819
split quiz lib.php into a locallib.php for functions that are only used from within the quiz module and a much smaller lib.php for functions that are used from elsewhere in Moodle.
2005-01-08 20:06:00 +00:00
gustav_delius
1da1f5a890
It is now possible to have also questions in all subcategories listed on edit.php. Because there can be a large number of questions the list of questions is now paged.
...
The random questions have another option specifying whether they can choose their questions also from subcategories or not. This option is stored in the unused questiontext field.
2005-01-05 17:27:23 +00:00
kaipe
d70ccc495c
New feature:
...
Maximum-number-of-questions-per-page
2005-01-03 00:41:33 +00:00
gustav_delius
ac27e47dc4
Hierarchical question categories from mediagonal, see http://moodle.org/bugs/bug.php?op=show&bugid=1947
2005-01-02 15:10:50 +00:00
gustav_delius
34283aa87d
The teacher now can choose whether to see the advanced quiz
...
options or not. This is handled as in the resource module. The
"Show advanced options" button is only shown if the admin has
chosen to declare some of the options as advanced.
There are now 4 review options as suggested by Martin in
http://moodle.org/mod/forum/discuss.php?d=16709
Provides separate buttons "Update this quiz" and "Edit questions",
see http://moodle.org/mod/forum/discuss.php?d=16708 . To make this
possible edit.php can now be called with a quiz id and it saves
its data itself rather than relying on mod.php.
mod.html now has a "Save changes" and a "Save changes and edit questions" button.
"Attempt quiz now" button gets a different language string for
re-attempts. This is currently set to "Re-attempt quiz".
After viewing the feedback for an attempt the "Continue" button
leads back to the course homepage, as requested in bugs 1224 and
1976. If there is no feedback the user is brought straight to quiz/view.php.
2005-01-02 07:15:19 +00:00
moodler
eb820b8b92
Use the proper preview image 11x11
2004-12-30 08:28:58 +00:00
gustav_delius
0dc4810a9a
Changed user interface for adding multiple random questions, see http://moodle.org/mod/forum/discuss.php?d=16531#78785
2004-12-29 22:57:35 +00:00
gustav_delius
71d1ef585f
added alt text to icons
2004-12-29 10:03:53 +00:00
gustav_delius
089a284b88
sort category question list by type then name as suggested in http://moodle.org/bugs/bug.php?op=show&bugid=2045
...
Also removed a PHP notice
2004-12-29 07:19:54 +00:00
moodler
a7ca4cd150
When teachers view quizzes (attempting or reviewing) they see a small
...
link with the actual question id of that question. The link creates
a popup so that they can edit that question directly.
2004-12-27 14:52:24 +00:00