1374 Commits

Author SHA1 Message Date
thepurpleblob
2bb63d99c2 Fixed syntax error. 2006-08-31 09:17:57 +00:00
toyomoyo
4f83ae95ca adding capabilities 2006-08-31 08:51:09 +00:00
toyomoyo
247cdeb68f utf8 migrate support for additional fields MDL-6339 2006-08-30 06:12:12 +00:00
tjhunt
f0a7247d0e Fix typo. 2006-08-28 18:50:42 +00:00
tjhunt
cd06115fa7 Convert mod/quiz/view.php to roles, and further tidy up the code flow in there. This touches other files because I had to change a function in locallib that had an $isteacher parameter.
I have not converted the rest of the quiz, and I don't intend to. I am hoping Moodle.com will do it.

I hope this does not introduce any bugs, but view.php is so complicate (at least it is less complicated than it was) and the quiz has so many options, that it is hard to be sure. This needs lots of testing before 1.7 is released.
2006-08-25 16:03:54 +00:00
tjhunt
64d8092342 Correct typo. 2006-08-25 11:23:00 +00:00
stronk7
2acf462dd9 Renamed column question_sessions->comment at Eloy's
request since comment is a DB reserved word.
(mimic from sql files) Thanks Tim! B-)
2006-08-24 16:57:39 +00:00
tjhunt
3e3e5a4030 Renamed column question_sessions->comment at Eloy's request since comment is a DB reserved word.
I have not been able to test this fully, because I cannot assign roles (e.g. Student and Teacher) in 1.7dev at the moment to test a student answering an essay question then a teacher grading it. However, I have tested as much as possible as admin and cannot get any errors.
2006-08-24 16:44:15 +00:00
tjhunt
a18fa6d5ba Get the contexts without referring to undefined variables. 2006-08-23 15:32:06 +00:00
tjhunt
5cae120596 Get the contexts without referring to undefined variables. 2006-08-23 15:12:52 +00:00
toyomoyo
945f88ca15 various changes - loading capabilities for questions, quiz, hide tab if no assignalbe or no overridable role is found, added some functions and comments in accesslib 2006-08-23 06:36:08 +00:00
toyomoyo
ed60c54a94 fix for MDL-6326, add support for quiz_feedaback table 2006-08-23 05:39:41 +00:00
stronk7
962f8a9b4e quiz_feedback added to XMLDB 2006-08-22 21:55:20 +00:00
stronk7
8792c16589 Small typo. ;-) 2006-08-22 21:44:07 +00:00
tjhunt
199e43d470 Fix Eclipse warnings. 2006-08-22 19:00:18 +00:00
tjhunt
212b7b8cd9 MDL-5270 - give students a feeback comment for their performance in the entire quiz.
Also, along the way I noticed and fixed MDL-6290 student grades not rescaled when quiz maximum grade changed.
2006-08-22 17:31:26 +00:00
tjhunt
1751eebc69 Reverting toyomoyo's conversion of mod/quiz/view.php to roles because his changes made no sense.
Admittedly, this file is pretty incomprehensible and it is not clear at first what it is trying to do. (Even though it is more comprehensible now than it was a week ago.) I'll to a proper conversion of this file to RnP once I have checked in my other changes there - assuming I can actually get Moodle to work so I can test my changes.
2006-08-22 13:53:39 +00:00
tjhunt
a4a6eb8a17 Fix toyomoyo's syntax errors. 2006-08-22 13:12:24 +00:00
toyomoyo
5cf38a57cd some quiz capabilities 2006-08-22 09:04:23 +00:00
toyomoyo
3765fd5367 some capabilities for quiz and questions, need to load them in access.php 2006-08-21 08:40:06 +00:00
tjhunt
dcc0a7e25f Bug #6305 - Quiz settings form field order could be better. Merged from MOODLE_16_STABLE. 2006-08-20 20:11:05 +00:00
tjhunt
865b753486 Code cleanup. Merged from MOODLE_16_STABLE. 2006-08-18 22:26:04 +00:00
tjhunt
b169c31e39 Save two queries if we are not going to output anything. 2006-08-16 16:54:20 +00:00
tjhunt
920b93d1e3 Remove horrific code duplication in mod/quiz/lib.php. 2006-08-16 08:46:10 +00:00
tjhunt
eeaeff8e04 Corrected include. 2006-08-15 20:44:21 +00:00
tjhunt
4e3487c59c Remove horrific code duplication in mod/quiz/mod.html. 2006-08-15 15:29:38 +00:00
tjhunt
c097419986 Reorder the table definitions in the file, to group them more logically. 2006-08-14 13:32:39 +00:00
stronk7
6750328ba0 Latest changes added + some polish in keys. 2006-08-12 23:03:59 +00:00
stronk7
6f398232e6 Added une foreign+unique key 2006-08-12 21:40:30 +00:00
stronk7
613f306d1d XMLDB schema initial commit for the quiz module.
Some doubts are pending to finish it properly.
2006-08-11 19:29:47 +00:00
tjhunt
1b8a7434e2 Bug 6239 - Allow questions to have some teacher-supplied commentary.
While implementing this, I removed the ~100 lines of very similar code from the top of each question type's editquestion.html template, and moved this to a the function print_question_form_start() in the base class, which uses the template question/type/editquestionstart.html. This is described in more detail here: http://moodle.org/mod/forum/discuss.php?d=51590, and is why this patch makes the codebase 523 lines smaller.
2006-08-11 14:59:18 +00:00
tjhunt
2c3968c407 Major code cleanup of this report (that started as a small code cleanup). None of the functionality should have changed - crosses fingers. 2006-08-10 21:52:07 +00:00
moodler
dabfd0ed85 Removed tabs 2006-08-09 13:45:49 +00:00
skodak
f9d5371b28 new function get_coursemodule_from_id() is now used for obtaining of valid $cm from coursemodule id SC#283 2006-08-08 22:09:55 +00:00
moodler
bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
tjhunt
00c300692f Fix whitespace. 2006-08-04 16:47:57 +00:00
tjhunt
bc5694133a Bug #6206 - Quiz can't be created on some mysql configurations. Merged from MOODLE_1.6_STABLE. 2006-08-03 16:30:38 +00:00
tjhunt
3b48ba9dc1 Bug #6157 - lang strings using concatenation, not $a. Merged from MOODLE_16_STABLE. 2006-07-24 14:40:48 +00:00
tjhunt
45d5305e19 Bug #6048 - Fix 'are you sure you want to start an attempt' warning. 2006-07-18 16:49:33 +00:00
tjhunt
ee26dfd17b Bug #6116 - Quiz database upgrade scripts call renamed function by the old name. Merged from MOODLE_16_STABLE. 2006-07-18 11:01:06 +00:00
tjhunt
a92a796a6a Bug 6092 - Give quiz finish time as well as start time in the quiz overview report. 2006-07-17 16:35:34 +00:00
tjhunt
079aa26d7d Bug #6077 - Teacher saving their grades destroys student essay! Merged from MOODLE_16_STABLE. 2006-07-11 16:14:23 +00:00
skodak
b2ec10959a workaround for Bug #6035 - editing quiz in one tab changes quiz in other; merged from MOODLE_16_STABLE 2006-07-11 13:02:42 +00:00
tjhunt
00aeaec820 Bug 6019: Quiz timer does not submit the form when it reaches zero. Merged from MOODLE_16_STABLE. 2006-07-05 10:43:53 +00:00
tjhunt
c358d62055 Bug 5967 - Missing lang strings and help for quiz reports. Merged from MOODLE_16_STABLE. 2006-06-30 10:31:44 +00:00
tjhunt
04a4cd2a0e Bug #5918 - essay question comments from teachers lost in 1.6 upgrade. Thanks to Mark Nielsen the suggestion of how to fix. Merged from MOODLE_16_STABLE. 2006-06-28 17:21:53 +00:00
tjhunt
5190eed81b Bug #5945: Lang string name missmatch when starting quiz attempt. Merged from MOODLE_16_STABLE. 2006-06-28 10:13:40 +00:00
tjhunt
0d8b8f1777 Quiz module sometimes left the user staring at a blank page. Now there is an error message. Merged from MOODLE_16_STABLE. 2006-06-13 18:59:41 +00:00
stronk7
daec7cda9b One notice() was preventing the upgrade to 1.7dev to continue. Bug 5773.
(http://moodle.org/bugs/bug.php?op=show&bugid=5773)
2006-06-09 10:15:03 +00:00
stronk7
8326d5afa3 Now the question_attempts creation and dotation will be
only executed if it hasn't been done in MOODLE_16_STABLE. Bug 5717.
(http://moodle.org/bugs/bug.php?op=show&bugid=5717)
2006-06-07 17:56:47 +00:00