[moodle] / moodle / mod / quiz / lib.php Repository:

Log of /moodle/mod/quiz/lib.php

Parent Directory Parent Directory


Links to HEAD: (view) (download) (annotate)
Sticky Tag:

Revision 1.406 - (view) (download) (annotate) - [select for diffs]
Fri May 11 22:28:49 2012 WST (5 days, 5 hours ago) by moodlerobot
Branch: MAIN
CVS Tags: HEAD
Changes since 1.405: +50 -51 lines
Diff to previous 1.405
weekly cvs snapshot

Revision 1.395.2.6 - (view) (download) (annotate) - [select for diffs]
Fri May 11 22:21:50 2012 WST (5 days, 5 hours ago) by moodlerobot
Branch: MOODLE_22_STABLE
CVS Tags: MOODLE_223, MOODLE_22_WEEKLY
Changes since 1.395.2.5: +2 -2 lines
Diff to previous 1.395.2.5 , to branch point 1.395 , to next main 1.406
weekly cvs snapshot

Revision 1.389.2.8 - (view) (download) (annotate) - [select for diffs]
Fri May 11 22:20:48 2012 WST (5 days, 5 hours ago) by moodlerobot
Branch: MOODLE_21_STABLE
CVS Tags: MOODLE_216, MOODLE_21_WEEKLY
Changes since 1.389.2.7: +2 -2 lines
Diff to previous 1.389.2.7 , to branch point 1.389 , to next main 1.406
weekly cvs snapshot

Revision 1.405 - (view) (download) (annotate) - [select for diffs]
Sat May 5 00:04:53 2012 WST (12 days, 3 hours ago) by moodlerobot
Branch: MAIN
Changes since 1.404: +51 -11 lines
Diff to previous 1.404
weekly cvs snapshot

Revision 1.404 - (view) (download) (annotate) - [select for diffs]
Fri Apr 27 21:42:21 2012 WST (2 weeks, 5 days ago) by moodlerobot
Branch: MAIN
Changes since 1.403: +7 -5 lines
Diff to previous 1.403
weekly cvs snapshot

Revision 1.403 - (view) (download) (annotate) - [select for diffs]
Fri Apr 6 20:15:54 2012 WST (5 weeks, 5 days ago) by moodlerobot
Branch: MAIN
Changes since 1.402: +2 -0 lines
Diff to previous 1.402
weekly cvs snapshot

Revision 1.395.2.5 - (view) (download) (annotate) - [select for diffs]
Fri Apr 6 20:10:11 2012 WST (5 weeks, 5 days ago) by moodlerobot
Branch: MOODLE_22_STABLE
Changes since 1.395.2.4: +2 -0 lines
Diff to previous 1.395.2.4 , to branch point 1.395
weekly cvs snapshot

Revision 1.402 - (view) (download) (annotate) - [select for diffs]
Fri Mar 23 09:09:40 2012 WST (7 weeks, 5 days ago) by moodlerobot
Branch: MAIN
Changes since 1.401: +18 -1 lines
Diff to previous 1.401
weekly cvs snapshot

Revision 1.401 - (view) (download) (annotate) - [select for diffs]
Thu Mar 1 19:15:16 2012 WST (2 months, 2 weeks ago) by moodlerobot
Branch: MAIN
Changes since 1.400: +14 -8 lines
Diff to previous 1.400
weekly cvs snapshot

Revision 1.400 - (view) (download) (annotate) - [select for diffs]
Thu Feb 23 19:26:07 2012 WST (2 months, 3 weeks ago) by moodlerobot
Branch: MAIN
Changes since 1.399: +5 -1 lines
Diff to previous 1.399
weekly cvs snapshot

Revision 1.389.2.7 - (view) (download) (annotate) - [select for diffs]
Mon Feb 13 08:50:27 2012 WST (3 months ago) by moodlerobot
Branch: MOODLE_21_STABLE
CVS Tags: MOODLE_215
Changes since 1.389.2.6: +1 -1 lines
Diff to previous 1.389.2.6 , to branch point 1.389
weekly cvs snapshot

Revision 1.395.2.4 - (view) (download) (annotate) - [select for diffs]
Mon Feb 13 08:47:50 2012 WST (3 months ago) by moodlerobot
Branch: MOODLE_22_STABLE
CVS Tags: MOODLE_222
Changes since 1.395.2.3: +1 -1 lines
Diff to previous 1.395.2.3 , to branch point 1.395
weekly cvs snapshot

Revision 1.399 - (view) (download) (annotate) - [select for diffs]
Mon Feb 13 08:47:17 2012 WST (3 months ago) by moodlerobot
Branch: MAIN
Changes since 1.398: +1 -1 lines
Diff to previous 1.398
weekly cvs snapshot

Revision 1.389.2.6 - (view) (download) (annotate) - [select for diffs]
Thu Jan 19 22:21:43 2012 WST (3 months, 3 weeks ago) by moodlerobot
Branch: MOODLE_21_STABLE
Changes since 1.389.2.5: +1 -0 lines
Diff to previous 1.389.2.5 , to branch point 1.389
weekly cvs snapshot

Revision 1.395.2.3 - (view) (download) (annotate) - [select for diffs]
Thu Jan 19 22:19:52 2012 WST (3 months, 3 weeks ago) by moodlerobot
Branch: MOODLE_22_STABLE
Changes since 1.395.2.2: +3 -1 lines
Diff to previous 1.395.2.2 , to branch point 1.395
weekly cvs snapshot

Revision 1.398 - (view) (download) (annotate) - [select for diffs]
Thu Jan 19 22:19:07 2012 WST (3 months, 3 weeks ago) by moodlerobot
Branch: MAIN
Changes since 1.397: +1 -0 lines
Diff to previous 1.397
weekly cvs snapshot

Revision 1.395.2.2 - (view) (download) (annotate) - [select for diffs]
Thu Jan 12 18:54:47 2012 WST (4 months ago) by moodlerobot
Branch: MOODLE_22_STABLE
Changes since 1.395.2.1: +32 -3 lines
Diff to previous 1.395.2.1 , to branch point 1.395
weekly cvs snapshot

Revision 1.397 - (view) (download) (annotate) - [select for diffs]
Thu Jan 12 18:54:10 2012 WST (4 months ago) by moodlerobot
Branch: MAIN
Changes since 1.396: +5 -6 lines
Diff to previous 1.396
weekly cvs snapshot

Revision 1.382.2.3 - (view) (download) (annotate) - [select for diffs]
Fri Dec 23 10:34:10 2011 WST (4 months, 3 weeks ago) by moodlerobot
Branch: MOODLE_20_STABLE
CVS Tags: MOODLE_207, MOODLE_208, MOODLE_209, MOODLE_20_WEEKLY
Changes since 1.382.2.2: +2 -2 lines
Diff to previous 1.382.2.2 , to branch point 1.382 , to next main 1.406
weekly cvs snapshot

Revision 1.389.2.5 - (view) (download) (annotate) - [select for diffs]
Fri Dec 23 10:32:04 2011 WST (4 months, 3 weeks ago) by moodlerobot
Branch: MOODLE_21_STABLE
CVS Tags: MOODLE_214
Changes since 1.389.2.4: +2 -2 lines
Diff to previous 1.389.2.4 , to branch point 1.389
weekly cvs snapshot

Revision 1.395.2.1 - (view) (download) (annotate) - [select for diffs]
Fri Dec 23 10:28:33 2011 WST (4 months, 3 weeks ago) by moodlerobot
Branch: MOODLE_22_STABLE
CVS Tags: MOODLE_221
Changes since 1.395: +2 -2 lines
Diff to previous 1.395
weekly cvs snapshot

Revision 1.396 - (view) (download) (annotate) - [select for diffs]
Fri Dec 23 10:26:02 2011 WST (4 months, 3 weeks ago) by moodlerobot
Branch: MAIN
Changes since 1.395: +2 -2 lines
Diff to previous 1.395
weekly cvs snapshot

Revision 1.395 - (view) (download) (annotate) - [select for diffs]
Thu Oct 20 03:56:57 2011 WST (6 months, 3 weeks ago) by moodlerobot
Branch: MAIN
CVS Tags: MOODLE_22, MOODLE_22_BETA, MOODLE_22_RC1
Branch point for: MOODLE_22_STABLE
Changes since 1.394: +16 -2 lines
Diff to previous 1.394
weekly cvs snapshot

Revision 1.389.2.4 - (view) (download) (annotate) - [select for diffs]
Thu Oct 13 05:58:05 2011 WST (7 months ago) by moodlerobot
Branch: MOODLE_21_STABLE
CVS Tags: MOODLE_213
Changes since 1.389.2.3: +3 -1 lines
Diff to previous 1.389.2.3 , to branch point 1.389
weekly cvs snapshot

Revision 1.394 - (view) (download) (annotate) - [select for diffs]
Thu Oct 13 05:57:37 2011 WST (7 months ago) by moodlerobot
Branch: MAIN
Changes since 1.393: +3 -1 lines
Diff to previous 1.393
weekly cvs snapshot

Revision 1.382.2.2 - (view) (download) (annotate) - [select for diffs]
Wed Sep 21 23:53:06 2011 WST (7 months, 3 weeks ago) by moodlerobot
Branch: MOODLE_20_STABLE
CVS Tags: MOODLE_205, MOODLE_206
Changes since 1.382.2.1: +1 -1 lines
Diff to previous 1.382.2.1 , to branch point 1.382
weekly cvs snapshot

Revision 1.389.2.3 - (view) (download) (annotate) - [select for diffs]
Wed Sep 21 23:51:54 2011 WST (7 months, 3 weeks ago) by moodlerobot
Branch: MOODLE_21_STABLE
CVS Tags: MOODLE_212
Changes since 1.389.2.2: +1 -1 lines
Diff to previous 1.389.2.2 , to branch point 1.389
weekly cvs snapshot

Revision 1.393 - (view) (download) (annotate) - [select for diffs]
Wed Sep 21 23:45:02 2011 WST (7 months, 3 weeks ago) by moodlerobot
Branch: MAIN
Changes since 1.392: +1 -1 lines
Diff to previous 1.392
weekly cvs snapshot

Revision 1.392 - (view) (download) (annotate) - [select for diffs]
Thu Sep 8 00:03:48 2011 WST (8 months, 1 week ago) by moodlerobot
Branch: MAIN
Changes since 1.391: +1 -0 lines
Diff to previous 1.391
weekly cvs snapshot

Revision 1.389.2.2 - (view) (download) (annotate) - [select for diffs]
Fri Aug 12 06:41:34 2011 WST (9 months ago) by moodlerobot
Branch: MOODLE_21_STABLE
Changes since 1.389.2.1: +1 -0 lines
Diff to previous 1.389.2.1 , to branch point 1.389
weekly cvs snapshot

Revision 1.391 - (view) (download) (annotate) - [select for diffs]
Fri Aug 12 06:40:49 2011 WST (9 months ago) by moodlerobot
Branch: MAIN
Changes since 1.390: +1 -0 lines
Diff to previous 1.390
weekly cvs snapshot

Revision 1.389.2.1 - (view) (download) (annotate) - [select for diffs]
Wed Jul 13 22:25:37 2011 WST (10 months ago) by moodlerobot
Branch: MOODLE_21_STABLE
CVS Tags: MOODLE_211
Changes since 1.389: +2 -1 lines
Diff to previous 1.389
weekly cvs snapshot

Revision 1.390 - (view) (download) (annotate) - [select for diffs]
Wed Jul 13 22:24:44 2011 WST (10 months ago) by moodlerobot
Branch: MAIN
Changes since 1.389: +2 -1 lines
Diff to previous 1.389
weekly cvs snapshot

Revision 1.389 - (view) (download) (annotate) - [select for diffs]
Sat Jul 2 06:24:46 2011 WST (10 months, 2 weeks ago) by moodlerobot
Branch: MAIN
CVS Tags: MOODLE_21
Branch point for: MOODLE_21_STABLE
Changes since 1.388: +4 -2 lines
Diff to previous 1.388
on-demand cvs snapshot

Revision 1.388 - (view) (download) (annotate) - [select for diffs]
Thu Jun 23 17:40:06 2011 WST (10 months, 3 weeks ago) by moodlerobot
Branch: MAIN
Changes since 1.387: +2 -3 lines
Diff to previous 1.387
weekly cvs snapshot

Revision 1.387 - (view) (download) (annotate) - [select for diffs]
Tue Jun 21 08:34:47 2011 WST (10 months, 3 weeks ago) by moodlerobot
Branch: MAIN
Changes since 1.386: +28 -10 lines
Diff to previous 1.386
on-demand cvs snapshot

Revision 1.386 - (view) (download) (annotate) - [select for diffs]
Fri Jun 17 01:37:43 2011 WST (11 months ago) by moodlerobot
Branch: MAIN
Changes since 1.385: +11 -0 lines
Diff to previous 1.385
weekly cvs snapshot (2.1beta)

Revision 1.385 - (view) (download) (annotate) - [select for diffs]
Thu Jun 9 10:09:40 2011 WST (11 months, 1 week ago) by moodlerobot
Branch: MAIN
Changes since 1.384: +341 -471 lines
Diff to previous 1.384
weekly cvs snapshot

Revision 1.384 - (view) (download) (annotate) - [select for diffs]
Thu May 26 06:45:30 2011 WST (11 months, 3 weeks ago) by moodlerobot
Branch: MAIN
Changes since 1.383: +2 -2 lines
Diff to previous 1.383
weekly cvs snapshot

Revision 1.282.2.29 - (view) (download) (annotate) - [select for diffs]
Wed May 18 18:36:17 2011 WST (11 months, 4 weeks ago) by moodlerobot
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_1913, MOODLE_1914, MOODLE_1915, MOODLE_1916, MOODLE_1917, MOODLE_1918, MOODLE_19_WEEKLY
Changes since 1.282.2.28: +9 -1 lines
Diff to previous 1.282.2.28 , to branch point 1.282 , to next main 1.406
weekly cvs snapshot

Revision 1.382.2.1 - (view) (download) (annotate) - [select for diffs]
Wed May 18 18:33:43 2011 WST (11 months, 4 weeks ago) by moodlerobot
Branch: MOODLE_20_STABLE
CVS Tags: MOODLE_204
Changes since 1.382: +10 -1 lines
Diff to previous 1.382
weekly cvs snapshot

Revision 1.383 - (view) (download) (annotate) - [select for diffs]
Wed May 18 18:32:39 2011 WST (11 months, 4 weeks ago) by moodlerobot
Branch: MAIN
Changes since 1.382: +10 -1 lines
Diff to previous 1.382
weekly cvs snapshot

Revision 1.382 - (view) (download) (annotate) - [select for diffs]
Wed Mar 16 16:46:31 2011 WST (14 months ago) by moodlerobot
Branch: MAIN
CVS Tags: MOODLE_203
Branch point for: MOODLE_20_STABLE
Changes since 1.381: +2 -2 lines
Diff to previous 1.381
weekly cvs snapshot

Revision 1.282.2.28 - (view) (download) (annotate) - [select for diffs]
Thu Feb 24 04:23:53 2011 WST (14 months, 3 weeks ago) by moodlerobot
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_1912
Changes since 1.282.2.27: +2 -2 lines
Diff to previous 1.282.2.27 , to branch point 1.282
weekly cvs snapshot

Revision 1.381 - (view) (download) (annotate) - [select for diffs]
Wed Feb 2 21:20:22 2011 WST (15 months, 1 week ago) by moodlerobot
Branch: MAIN
CVS Tags: MOODLE_202
Changes since 1.380: +3 -2 lines
Diff to previous 1.380
weekly cvs snapshot

Revision 1.380 - (view) (download) (annotate) - [select for diffs]
Fri Dec 3 00:51:52 2010 WST (17 months, 2 weeks ago) by mudrd8mz
Branch: MAIN
CVS Tags: MOODLE_201
Changes since 1.379: +1 -3 lines
Diff to previous 1.379
MDL-25316 quiz_get_extra_capabilities() does not need to fetch subcapabilities explicitly

Revision 1.379 - (view) (download) (annotate) - [select for diffs]
Wed Oct 6 01:11:16 2010 WST (19 months, 1 week ago) by tjhunt
Branch: MAIN
CVS Tags: MOODLE_20
Changes since 1.378: +1 -1 lines
Diff to previous 1.378
quiz recent activity MDL-24528 was setting the activity userid to the attempt id. Doh!

Revision 1.378 - (view) (download) (annotate) - [select for diffs]
Tue Sep 21 16:54:04 2010 WST (19 months, 3 weeks ago) by skodak
Branch: MAIN
Changes since 1.377: +1 -1 lines
Diff to previous 1.377
MDL-24321 switching to standard stdClass()

Revision 1.377 - (view) (download) (annotate) - [select for diffs]
Tue Sep 21 16:37:37 2010 WST (19 months, 3 weeks ago) by skodak
Branch: MAIN
Changes since 1.376: +1 -1 lines
Diff to previous 1.376
MDL-24321 switching to stdClass in /mod/

Revision 1.376 - (view) (download) (annotate) - [select for diffs]
Tue Sep 21 09:28:31 2010 WST (19 months, 3 weeks ago) by stronk7
Branch: MAIN
Changes since 1.375: +1 -0 lines
Diff to previous 1.375
MDL-22151 & MDL-22138 - Quiz activity backup & questions banks too!
CV S: ----------------------------------------------------------------------

Revision 1.375 - (view) (download) (annotate) - [select for diffs]
Sat Sep 18 20:08:17 2010 WST (19 months, 4 weeks ago) by skodak
Branch: MAIN
Changes since 1.374: +1 -1 lines
Diff to previous 1.374
hmm, it is reset course not courses

Revision 1.374 - (view) (download) (annotate) - [select for diffs]
Sat Sep 18 20:07:01 2010 WST (19 months, 4 weeks ago) by skodak
Branch: MAIN
Changes since 1.373: +1 -1 lines
Diff to previous 1.373
a few spelling fixes

Revision 1.373 - (view) (download) (annotate) - [select for diffs]
Tue Aug 10 17:56:50 2010 WST (21 months ago) by dongsheng
Branch: MAIN
Changes since 1.372: +142 -17 lines
Diff to previous 1.372
MDL-16094 File storage conversion Quiz and Questions

Revision 1.372 - (view) (download) (annotate) - [select for diffs]
Fri Aug 6 01:38:21 2010 WST (21 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.371: +1 -1 lines
Diff to previous 1.371
quiz navigation: NOBUG link should be imperative, edit quiz, not editing quiz.

Revision 1.371 - (view) (download) (annotate) - [select for diffs]
Thu Aug 5 00:31:54 2010 WST (21 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.370: +8 -11 lines
Diff to previous 1.370
mod_quiz / navigation MDL-20276 further polishing the quiz navigation structure.

Revision 1.370 - (view) (download) (annotate) - [select for diffs]
Tue Aug 3 19:10:38 2010 WST (21 months, 1 week ago) by tjhunt
Branch: MAIN
Changes since 1.369: +2 -2 lines
Diff to previous 1.369
quiz MDL-22691 error when editing a block's config on the quiz view page.

Revision 1.369 - (view) (download) (annotate) - [select for diffs]
Wed Jul 28 23:08:34 2010 WST (21 months, 2 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.368: +36 -21 lines
Diff to previous 1.368
NOBUG more consistent use of URLs for the quiz reports.

Revision 1.368 - (view) (download) (annotate) - [select for diffs]
Tue Jul 27 06:20:51 2010 WST (21 months, 3 weeks ago) by mudrd8mz
Branch: MAIN
Changes since 1.367: +3 -4 lines
Diff to previous 1.367
NOMDL quiz: fixed sql params handling in recent activity report

The $params set were thrown away by array() statement, leading to DML
error.

Revision 1.367 - (view) (download) (annotate) - [select for diffs]
Thu Jul 22 17:43:34 2010 WST (21 months, 3 weeks ago) by skodak
Branch: MAIN
Changes since 1.366: +2 -2 lines
Diff to previous 1.366
fixed some comment typos

Revision 1.366 - (view) (download) (annotate) - [select for diffs]
Mon Jul 5 02:36:35 2010 WST (22 months, 1 week ago) by skodak
Branch: MAIN
Changes since 1.365: +2 -1 lines
Diff to previous 1.365
MDL-21676 user_picture refactoring, reenabling email requirement - towards Gravatar support

Revision 1.282.2.27 - (view) (download) (annotate) - [select for diffs]
Thu Jun 24 04:14:27 2010 WST (22 months, 3 weeks ago) by tjhunt
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_1910, MOODLE_1911, MOODLE_19_MERGED
Changes since 1.282.2.26: +4 -1 lines
Diff to previous 1.282.2.26 , to branch point 1.282
quiz global settings: MDL-22808 Cannot turn adaptive mode on globally.
Because of a missing constant definition.

Revision 1.365 - (view) (download) (annotate) - [select for diffs]
Fri May 21 11:15:49 2010 WST (23 months, 3 weeks ago) by samhemelryk
Branch: MAIN
Changes since 1.364: +52 -26 lines
Diff to previous 1.364
navigation MDL-20276 Fixed up the navigation for the quiz module and question section as per Tim's recommendation.
* Routine navigation through the quiz and question modules
* Fixed navbar through quiz and questions
* Pages headers added throughout
* Added method to turn a navigation node into a tabs array suitable for use with print tabs

Revision 1.364 - (view) (download) (annotate) - [select for diffs]
Tue May 11 06:36:40 2010 WST (2 years ago) by tjhunt
Branch: MAIN
Changes since 1.363: +1 -2 lines
Diff to previous 1.363
quiz recent activity: MDL-22410 permission check was wrong.

Revision 1.282.2.26 - (view) (download) (annotate) - [select for diffs]
Tue May 11 06:36:37 2010 WST (2 years ago) by tjhunt
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_199
Changes since 1.282.2.25: +2 -3 lines
Diff to previous 1.282.2.25 , to branch point 1.282
quiz recent activity: MDL-22410 permission check was wrong.

Revision 1.363 - (view) (download) (annotate) - [select for diffs]
Tue May 11 06:15:17 2010 WST (2 years ago) by tjhunt
Branch: MAIN
Changes since 1.362: +2 -4 lines
Diff to previous 1.362
quiz settings MDL-21780 more work on group and user setting overrides
The group setting tab is now disabled if there are no groups in the course.
The code also now respects groupings.
Thanks to Matt Petro for this patch.

Revision 1.362 - (view) (download) (annotate) - [select for diffs]
Fri May 7 08:08:17 2010 WST (2 years ago) by tjhunt
Branch: MAIN
Changes since 1.361: +5 -6 lines
Diff to previous 1.361
MDL-20860 quiz grades that had already been formatted for output were being used in database queries.
Which really does not work in locales that use , as a decimal point.

Also, this commit fixes one performance problem in index.php with DB queries in a loop.

Revision 1.361 - (view) (download) (annotate) - [select for diffs]
Sat May 1 16:08:50 2010 WST (2 years ago) by tjhunt
Branch: MAIN
Changes since 1.360: +1 -1 lines
Diff to previous 1.360
quiz: NOBUG fix silly typo.

Revision 1.282.2.25 - (view) (download) (annotate) - [select for diffs]
Sat May 1 15:08:24 2010 WST (2 years ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.282.2.24: +4 -4 lines
Diff to previous 1.282.2.24 , to branch point 1.282
quiz: MDL-20586 Oops, remove reference to global $DB.

Revision 1.360 - (view) (download) (annotate) - [select for diffs]
Thu Apr 29 18:46:39 2010 WST (2 years ago) by tjhunt
Branch: MAIN
Changes since 1.359: +84 -79 lines
Diff to previous 1.359
quiz recent activity: MDL-20586 was showing scores even if quiz settings said not to.

Fix started with a patch from Yolanda Ordoñez Rufat but with significant reworking by me.

Revision 1.282.2.24 - (view) (download) (annotate) - [select for diffs]
Thu Apr 29 18:46:37 2010 WST (2 years ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.282.2.23: +80 -55 lines
Diff to previous 1.282.2.23 , to branch point 1.282
quiz recent activity: MDL-20586 was showing scores even if quiz settings said not to.

Fix started with a patch from Yolanda Ordoñez Rufat but with significant reworking by me.

Revision 1.359 - (view) (download) (annotate) - [select for diffs]
Mon Apr 19 14:30:33 2010 WST (2 years ago) by samhemelryk
Branch: MAIN
Changes since 1.358: +2 -2 lines
Diff to previous 1.358
navigation MDL-22044 Major navigation structure changes.
Navigation has now been re-ordered in accordance with http://docs.moodle.org/en/Development:Navigation_2.0_structure.
This has led to several changes in the way in which navigation is generated included API changes, most notably using the
navigation_nodes add method now returns the newly added node rather than the key.
At the same time the global_navigation_tree block has been renamed to navigation and settings_navigation_tree to settings.

Revision 1.358 - (view) (download) (annotate) - [select for diffs]
Mon Apr 5 03:58:04 2010 WST (2 years, 1 month ago) by skodak
Branch: MAIN
Changes since 1.357: +0 -1 lines
Diff to previous 1.357
MDL-16438 separating subplugin detection from the plugin_supports code because it was running into infinite loops in get_string() which is often incorrectly used in lib.php files, but the get_string() itself needs to know about subplugins

Revision 1.357 - (view) (download) (annotate) - [select for diffs]
Mon Mar 22 11:04:02 2010 WST (2 years, 1 month ago) by samhemelryk
Branch: MAIN
Changes since 1.356: +9 -22 lines
Diff to previous 1.356
navigation MDL-21565 Update this xxx is now automatically added to the nav for all modules by default and is renamed to settings as that is what was being used in the tabs system presently anyway.
The following minor changes were also made:
* Added roles links to the navigation automatically
* Handling of block context for settings navigation
* Tidied up init code for settings navigation

Revision 1.356 - (view) (download) (annotate) - [select for diffs]
Tue Mar 9 00:01:39 2010 WST (2 years, 2 months ago) by tjhunt
Branch: MAIN
Changes since 1.355: +268 -103 lines
Diff to previous 1.355
quiz: MDL-16478 Allow different open/close dates, etc. for individual students or groups.

This was implemented by Matt Petro of the University of Wisconsin - Madison Engineering
School and Math Department. Many thanks. Reviewed by and committed by Tim Hunt.

This adds a new Overrides tab to the UI, with sub-tabs Group overrides and User overrides.
Each of those lists all the overrides that currently exist, and lets you manage them and
create more.

When a quiz is being attempted, the override that applies to the current user is combined
with the current quiz settings loaded from the quiz table (normally called $quiz).
If there are both user and group overrides, then just the specific user override is used (more specific).
If the user is in several groups, then the overrides are combined to give the most permissive set of options.

There is one new database table quiz_overrides, to store the overrides.

Revision 1.355 - (view) (download) (annotate) - [select for diffs]
Sun Feb 14 17:29:44 2010 WST (2 years, 3 months ago) by skodak
Branch: MAIN
Changes since 1.354: +5 -5 lines
Diff to previous 1.354
MDL-21590 fixed recent regression in nav icons - now using new pix_icon instead of urls, have to rework extra icon handling in resources though

Revision 1.354 - (view) (download) (annotate) - [select for diffs]
Thu Jan 28 15:57:48 2010 WST (2 years, 3 months ago) by samhemelryk
Branch: MAIN
Changes since 1.353: +1 -1 lines
Diff to previous 1.353
mod-quiz MDL-15050 Fixed regression missing global OUTPUT

Revision 1.353 - (view) (download) (annotate) - [select for diffs]
Sat Jan 16 23:40:05 2010 WST (2 years, 3 months ago) by skodak
Branch: MAIN
Changes since 1.352: +6 -6 lines
Diff to previous 1.352
MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions

Revision 1.352 - (view) (download) (annotate) - [select for diffs]
Sun Jan 3 23:46:14 2010 WST (2 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.351: +2 -2 lines
Diff to previous 1.351
MDL-21198 $OUTPUT->single_button() resurrection, hopefully much easier to use than $OUTPUT->button(); fixed some regressions and code style improvements

Revision 1.351 - (view) (download) (annotate) - [select for diffs]
Mon Dec 28 03:47:23 2009 WST (2 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.350: +1 -1 lines
Diff to previous 1.350
MDL-21198 improved/simplified $OUTPUT->user_picture() + regression fixes, performance fixes and detected performance problems when printing user avatars

Revision 1.350 - (view) (download) (annotate) - [select for diffs]
Thu Dec 24 10:06:05 2009 WST (2 years, 4 months ago) by samhemelryk
Branch: MAIN
Changes since 1.349: +3 -4 lines
Diff to previous 1.349
navigation MDL-21177 Removed erroneous DB queries from module extension calls

Revision 1.349 - (view) (download) (annotate) - [select for diffs]
Wed Dec 23 11:01:36 2009 WST (2 years, 4 months ago) by samhemelryk
Branch: MAIN
Changes since 1.348: +19 -11 lines
Diff to previous 1.348
mod-quiz MDL-19813 converted deprecated calendar event methods

Revision 1.348 - (view) (download) (annotate) - [select for diffs]
Thu Dec 17 05:50:46 2009 WST (2 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.347: +6 -6 lines
Diff to previous 1.347
MDL-20787 final switch to new $OUTPUT->pix_url() - yay!

Revision 1.347 - (view) (download) (annotate) - [select for diffs]
Thu Dec 17 02:01:17 2009 WST (2 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.346: +1 -1 lines
Diff to previous 1.346
MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks

Revision 1.346 - (view) (download) (annotate) - [select for diffs]
Tue Oct 27 20:37:15 2009 WST (2 years, 6 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.345: +22 -12 lines
Diff to previous 1.345
MDL-15050 Grades entered/updated through grader report now get correctly displayed in course user activity reports (commenting on last commit). Merged from MOODLE_19_STABLE

Revision 1.282.2.23 - (view) (download) (annotate) - [select for diffs]
Tue Oct 27 19:24:56 2009 WST (2 years, 6 months ago) by nicolasconnault
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_197, MOODLE_198
Changes since 1.282.2.22: +20 -9 lines
Diff to previous 1.282.2.22 , to branch point 1.282
no message

Revision 1.345 - (view) (download) (annotate) - [select for diffs]
Wed Sep 16 13:15:25 2009 WST (2 years, 8 months ago) by samhemelryk
Branch: MAIN
Changes since 1.344: +71 -0 lines
Diff to previous 1.344
mod-quiz MDL-20276 Created callback methods to expand navigation and settings blocks

Revision 1.344 - (view) (download) (annotate) - [select for diffs]
Thu Aug 20 16:45:48 2009 WST (2 years, 8 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.343: +5 -5 lines
Diff to previous 1.343
MDL-19813 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno

Revision 1.343 - (view) (download) (annotate) - [select for diffs]
Mon Aug 10 13:00:41 2009 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.342: +6 -6 lines
Diff to previous 1.342
MDL-19813 Converted print_box* to $OUTPUT->box*

Revision 1.342 - (view) (download) (annotate) - [select for diffs]
Fri Jul 17 15:06:53 2009 WST (2 years, 10 months ago) by tjhunt
Branch: MAIN
Changes since 1.341: +2 -4 lines
Diff to previous 1.341
quiz: add tracker id to TODO.

Revision 1.341 - (view) (download) (annotate) - [select for diffs]
Thu Jul 2 20:08:01 2009 WST (2 years, 10 months ago) by tjhunt
Branch: MAIN
Changes since 1.340: +2 -2 lines
Diff to previous 1.340
MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url
and $CFG->modpixpath to $OUTPUT->mod_icon_url

Revision 1.340 - (view) (download) (annotate) - [select for diffs]
Fri Jun 19 22:26:03 2009 WST (2 years, 10 months ago) by skodak
Branch: MAIN
Changes since 1.339: +1 -1 lines
Diff to previous 1.339
MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions

Revision 1.339 - (view) (download) (annotate) - [select for diffs]
Sun Jun 14 02:34:45 2009 WST (2 years, 11 months ago) by skodak
Branch: MAIN
Changes since 1.338: +1 -3 lines
Diff to previous 1.338
MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup

Revision 1.338 - (view) (download) (annotate) - [select for diffs]
Thu May 28 11:51:41 2009 WST (2 years, 11 months ago) by samhemelryk
Branch: MAIN
Changes since 1.337: +184 -48 lines
Diff to previous 1.337
mod lib MDL-19294 Added boilerplate and phpdocs

Revision 1.282.2.22 - (view) (download) (annotate) - [select for diffs]
Mon May 11 14:31:58 2009 WST (3 years ago) by nicolasconnault
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_195, MOODLE_196
Changes since 1.282.2.21: +5 -1 lines
Diff to previous 1.282.2.21 , to branch point 1.282
MDL-7028 global $QTYPES is only available if lib/questionlib.php is included.

Revision 1.337 - (view) (download) (annotate) - [select for diffs]
Wed May 6 17:24:45 2009 WST (3 years ago) by tjhunt
Branch: MAIN
Changes since 1.336: +1 -7 lines
Diff to previous 1.336
pagelib: MDL-12212 eliminate quiz_page

Revision 1.336 - (view) (download) (annotate) - [select for diffs]
Wed Apr 22 12:57:34 2009 WST (3 years ago) by skodak
Branch: MAIN
Changes since 1.335: +3 -2 lines
Diff to previous 1.335
MDL-18910 full support for module intro editor with embedded images

Revision 1.335 - (view) (download) (annotate) - [select for diffs]
Wed Apr 22 05:17:23 2009 WST (3 years ago) by skodak
Branch: MAIN
Changes since 1.334: +2 -2 lines
Diff to previous 1.334
MDL-18910 full support for module intro editor with embedded images

Revision 1.334 - (view) (download) (annotate) - [select for diffs]
Tue Apr 21 16:57:23 2009 WST (3 years ago) by skodak
Branch: MAIN
Changes since 1.333: +8 -2 lines
Diff to previous 1.333
MDL-18910 moving modedit features to modname_supports()

Revision 1.333 - (view) (download) (annotate) - [select for diffs]
Tue Mar 24 13:15:49 2009 WST (3 years, 1 month ago) by tjhunt
Branch: MAIN
Changes since 1.332: +2 -2 lines
Diff to previous 1.332
quiz: MDL-18637 fix 1.9-style DB code merged to HEAD by mistake.

Revision 1.332 - (view) (download) (annotate) - [select for diffs]
Mon Mar 23 12:57:45 2009 WST (3 years, 1 month ago) by tjhunt
Branch: MAIN
Changes since 1.331: +2 -2 lines
Diff to previous 1.331
Fix typo.

Revision 1.282.2.21 - (view) (download) (annotate) - [select for diffs]
Wed Mar 18 16:34:04 2009 WST (3 years, 1 month ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.282.2.20: +6 -4 lines
Diff to previous 1.282.2.20 , to branch point 1.282
quiz settings: MDL-18583 When a quiz has no grade, make it clear that you can only enter one lot of overall feedback.

When the maximum grade for the quiz is 0, we disable all the overall feedback form controls except for the first, and display an explanitory message.

Revision 1.331 - (view) (download) (annotate) - [select for diffs]
Wed Mar 18 16:33:56 2009 WST (3 years, 1 month ago) by tjhunt
Branch: MAIN
Changes since 1.330: +6 -4 lines
Diff to previous 1.330
quiz settings: MDL-18583 When a quiz has no grade, make it clear that you can only enter one lot of overall feedback.

When the maximum grade for the quiz is 0, we disable all the overall feedback form controls except for the first, and display an explanitory message.

Revision 1.330 - (view) (download) (annotate) - [select for diffs]
Wed Mar 18 14:16:49 2009 WST (3 years, 1 month ago) by tjhunt
Branch: MAIN
Changes since 1.329: +12 -12 lines
Diff to previous 1.329
quiz outline report: MDL-18285 Show regrade date, not last attempt date.

I also took the opportunity to clean up the code a bit.

Revision 1.282.2.20 - (view) (download) (annotate) - [select for diffs]
Wed Mar 18 14:16:42 2009 WST (3 years, 1 month ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.282.2.19: +28 -11 lines
Diff to previous 1.282.2.19 , to branch point 1.282
quiz outline report: MDL-18285 Show regrade date, not last attempt date.

I also took the opportunity to clean up the code a bit.

Revision 1.329 - (view) (download) (annotate) - [select for diffs]
Tue Mar 17 16:08:33 2009 WST (3 years, 2 months ago) by tjhunt
Branch: MAIN
Changes since 1.328: +13 -9 lines
Diff to previous 1.328
quiz settings: MDL-17333 Resolve the interrelations between shufflequestions and questionsperpage.

* change the wording of the settings.
* add a repaginate now checkbox (disabled if shuffle is on).
* JavaScript to automatically check the checkbox when qpp changes.
* (remove some irrelevant return value checks now we use exceptions.)

Revision 1.328 - (view) (download) (annotate) - [select for diffs]
Tue Mar 10 17:39:54 2009 WST (3 years, 2 months ago) by tjhunt
Branch: MAIN
Changes since 1.327: +59 -28 lines
Diff to previous 1.327
quiz settings: MDL-18485 Improve quiz settings form

* Reorder form fields to group things more logically.
** and on the corresponding admin page too.

* Set some options to be 'Advanced' by default:
** Apply penalties.
** Each attempt builds on the last.
** Decimal places for question grades.
** The five 'Extra restrictions on attempts' settings. (password, etc.)
* Admins can still change this to suit their institiution at Administration > Plugins > Activity modules > Quiz.
* These new defaults are applied if the admin had not previously set any fields to be advanced.

* Disable some filds when they are not applicable:
** Grading method, if num attempts = 1
** Penaly scheme, if adaptive mode = no
** Each attempt builds of last, if num attempts = 1
** Review after quiz closed options, if no close date.
** Delay between 1st and 2nd attempts, if num attempts = 1
** Delay between later attempts, if num attempts < 3

* Convert quiz.timelimit to be in seconds, for consistency, and ready for the new duration field type (MDL 18500).
** Including ensuring that backup and restore is backwards compatible.

* MDL-5537 New setting, questiondecimalpoints, so, for example, you can show the quiz grade as an integer, but have fractional question grades.
** There is a 'Same as overall decimal points' option, which is the default.

* Improve some field labels.

* Make corresponding changes in the help files.

Revision 1.327 - (view) (download) (annotate) - [select for diffs]
Wed Mar 4 17:35:05 2009 WST (3 years, 2 months ago) by tjhunt
Branch: MAIN
Changes since 1.326: +39 -79 lines
Diff to previous 1.326
quiz lib: MDL-17579 should call delete_attempt from questionlib.php rather than trying to do the job itself.

Revision 1.326 - (view) (download) (annotate) - [select for diffs]
Wed Jan 14 16:08:02 2009 WST (3 years, 4 months ago) by tjhunt
Branch: MAIN
Changes since 1.325: +2 -2 lines
Diff to previous 1.325
quiz: MDL-14926 New capability mod/quiz:reviewmyattempts, separate from mod/quiz:attempt. Merged from MOODLE_19_STABLE.

Revision 1.282.2.19 - (view) (download) (annotate) - [select for diffs]
Wed Jan 14 16:03:13 2009 WST (3 years, 4 months ago) by tjhunt
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_194
Changes since 1.282.2.18: +2 -2 lines
Diff to previous 1.282.2.18 , to branch point 1.282
quiz: MDL-14926 New capability mod/quiz:reviewmyattempts, separate from mod/quiz:attempt.

Revision 1.325 - (view) (download) (annotate) - [select for diffs]
Tue Jan 13 06:13:31 2009 WST (3 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.324: +1 -8 lines
Diff to previous 1.324
MDL-17457 migrated all modules to new db/install.php; added upgrade.txt file for devs converting contrib modules

Revision 1.324 - (view) (download) (annotate) - [select for diffs]
Tue Jan 13 01:52:54 2009 WST (3 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.323: +1 -4 lines
Diff to previous 1.323
MDL-17849 sql queries not printed by default during upgrade anymore, there is a new config.php only setting $CFG->upgradeshowsql instead

Revision 1.282.2.18 - (view) (download) (annotate) - [select for diffs]
Fri Jan 9 15:16:52 2009 WST (3 years, 4 months ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.282.2.17: +2 -2 lines
Diff to previous 1.282.2.17 , to branch point 1.282
accesslib: MDL-17626 delete the context whenever a block is deleted. This includes a new helper function blocks_delete_all_on_page.

Revision 1.323 - (view) (download) (annotate) - [select for diffs]
Fri Jan 9 15:16:36 2009 WST (3 years, 4 months ago) by tjhunt
Branch: MAIN
Changes since 1.322: +2 -2 lines
Diff to previous 1.322
accesslib: MDL-17626 delete the context whenever a block is deleted. This includes a new helper function blocks_delete_all_on_page.

Revision 1.322 - (view) (download) (annotate) - [select for diffs]
Sun Dec 14 22:32:45 2008 WST (3 years, 5 months ago) by tjhunt
Branch: MAIN
Changes since 1.321: +3 -3 lines
Diff to previous 1.321
quiz: MDL-17578 Review quiz_get_view_actions and quiz_get_post_actions.

Revision 1.321 - (view) (download) (annotate) - [select for diffs]
Wed Dec 10 11:11:42 2008 WST (3 years, 5 months ago) by tjhunt
Branch: MAIN
Changes since 1.320: +9 -11 lines
Diff to previous 1.320
performance: MDL-17577 only include lib/questionlib.php from the few parts of mod/quiz/lib.php that actually need it. Merged from MOODLE_19_STABLE.

Revision 1.282.2.17 - (view) (download) (annotate) - [select for diffs]
Wed Dec 10 11:11:24 2008 WST (3 years, 5 months ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.282.2.16: +7 -15 lines
Diff to previous 1.282.2.16 , to branch point 1.282
performance: MDL-17577 only include lib/questionlib.php from the few parts of mod/quiz/lib.php that actually need it.

Revision 1.320 - (view) (download) (annotate) - [select for diffs]
Tue Nov 25 21:11:28 2008 WST (3 years, 5 months ago) by jamiesensei
Branch: MAIN
Changes since 1.319: +4 -1 lines
Diff to previous 1.319
MDL-15326 "allow for per report capabilities to replace mod/quiz:viewreports"

Revision 1.319 - (view) (download) (annotate) - [select for diffs]
Tue Sep 23 15:18:15 2008 WST (3 years, 7 months ago) by tjhunt
Branch: MAIN
Changes since 1.318: +14 -2 lines
Diff to previous 1.318
MDL-16625 Detection of whether a quiz has grades was broken in HEAD.
1. Fix this by factoring out a quiz_has_grades function.
2. Fix the quiz unit tests.
3. Fix quiz_has_feedback to return false for ungraded quizzes.
4. Fix use of get_records to do record_exists in quiz reports.

Revision 1.318 - (view) (download) (annotate) - [select for diffs]
Thu Sep 11 18:37:50 2008 WST (3 years, 8 months ago) by tjhunt
Branch: MAIN
Changes since 1.317: +2 -2 lines
Diff to previous 1.317
Improve comment.

Revision 1.317 - (view) (download) (annotate) - [select for diffs]
Wed Sep 10 13:28:25 2008 WST (3 years, 8 months ago) by tjhunt
Branch: MAIN
Changes since 1.316: +5 -16 lines
Diff to previous 1.316
Refactor getting question bank capabilties in mod/quiz/lib.php - don't hard code them.

Also, functions for getting a URL for editing questions in a particular context, ready for MDL-16409.

Revision 1.316 - (view) (download) (annotate) - [select for diffs]
Tue Sep 2 18:06:17 2008 WST (3 years, 8 months ago) by jerome
Branch: MAIN
Changes since 1.315: +22 -2 lines
Diff to previous 1.315
MDL-16307: move quiz_get_best_grade() in lib.php, and fix the DB request of quiz_user_complete()

Revision 1.315 - (view) (download) (annotate) - [select for diffs]
Fri Aug 29 18:08:27 2008 WST (3 years, 8 months ago) by tjhunt
Branch: MAIN
Changes since 1.314: +2 -1 lines
Diff to previous 1.314
MDL-16263 A way for students to flag/bookmark, particular questions during a quiz attempt for later review.

This is an initial implementation that is now at a working state, but with a few things left to do. It seemed like a good idea to commit it before leaving work on Friday night.

Revision 1.314 - (view) (download) (annotate) - [select for diffs]
Tue Aug 26 09:05:01 2008 WST (3 years, 8 months ago) by tjhunt
Branch: MAIN
Changes since 1.313: +21 -1 lines
Diff to previous 1.313
MDL-7010 Convert mod\quiz\config.html to mod/quiz/settingstree.php using the new admin tree system.

Revision 1.313 - (view) (download) (annotate) - [select for diffs]
Sat Aug 16 20:16:05 2008 WST (3 years, 9 months ago) by skodak
Branch: MAIN
Changes since 1.312: +45 -31 lines
Diff to previous 1.312
MDL-16002 rewritten upgrade locking and better upgrade progress tracking; MDL-16070 Do not use $a[0] syntax in lang packs + various other upgrade improvements and fixes

Revision 1.312 - (view) (download) (annotate) - [select for diffs]
Fri Aug 15 16:23:09 2008 WST (3 years, 9 months ago) by tjhunt
Branch: MAIN
Changes since 1.311: +2 -17 lines
Diff to previous 1.311
MDL-16058 - Remove obsolete quiz_question_versions table.

Revision 1.311 - (view) (download) (annotate) - [select for diffs]
Fri Aug 15 14:42:38 2008 WST (3 years, 9 months ago) by tjhunt
Branch: MAIN
Changes since 1.310: +17 -11 lines
Diff to previous 1.310
MDL-10682 - Ensure quiz and question grades are formatted consisently and correctly. While testing, I also fixed a few XHTML Strrrict errors.

Revision 1.310 - (view) (download) (annotate) - [select for diffs]
Thu Jul 31 16:01:50 2008 WST (3 years, 9 months ago) by moodler
Branch: MAIN
Changes since 1.309: +1 -7 lines
Diff to previous 1.309
MDL-10107   Fixed the definition of message providers ... it now works through files very similar to those for events and capabilities, which makes them easy to add/remove/change as necessary

Revision 1.309 - (view) (download) (annotate) - [select for diffs]
Mon Jul 28 23:58:51 2008 WST (3 years, 9 months ago) by sam_marshall
Branch: MAIN
Changes since 1.308: +2 -2 lines
Diff to previous 1.308
MDL-15498: Fixes to problems Petr identified with completion system checkin

Revision 1.308 - (view) (download) (annotate) - [select for diffs]
Mon Jul 28 20:31:33 2008 WST (3 years, 9 months ago) by sam_marshall
Branch: MAIN
Changes since 1.307: +14 -2 lines
Diff to previous 1.307
MDL-15498: Completion system

Revision 1.307 - (view) (download) (annotate) - [select for diffs]
Fri Jul 25 05:59:14 2008 WST (3 years, 9 months ago) by skodak
Branch: MAIN
Changes since 1.306: +21 -1 lines
Diff to previous 1.306
MDL-11421 context levels fixed in capability definitions, sorting of caps by name, plug-ins may report used core caps, fixed some risks; merged from MOODLE_19_STABLE

Revision 1.282.2.16 - (view) (download) (annotate) - [select for diffs]
Fri Jul 25 05:58:08 2008 WST (3 years, 9 months ago) by skodak
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_193
Changes since 1.282.2.15: +21 -1 lines
Diff to previous 1.282.2.15 , to branch point 1.282
MDL-11421 context levels fixed in capability definitions, sorting of caps by name, plug-ins may report used core caps, fixed some risks

Revision 1.306 - (view) (download) (annotate) - [select for diffs]
Thu Jul 24 16:38:08 2008 WST (3 years, 9 months ago) by moodler
Branch: MAIN
Changes since 1.305: +15 -1 lines
Diff to previous 1.305
MDL-10107 - First check-in of Messaging 2.0 code from Luis Rodrigues, GSOC student.

This new messaging system replaces all the various email_to_user() calls.
They are now replaced by events triggers, and the messages are then
processed centrally according to user preferences and sent to one or more
processors (email, popup, jabber etc...)

This code is not finished yet, a lot of work still has to be done on the
interface.  However, the basic structure is there and should be working.
Luis and I will be reviewing and polishing this heavily in the next few weeks.

Revision 1.305 - (view) (download) (annotate) - [select for diffs]
Fri Jul 11 15:27:15 2008 WST (3 years, 10 months ago) by jamiesensei
Branch: MAIN
Changes since 1.304: +10 -3 lines
Diff to previous 1.304
MDL-14216 "Improvements to regrade report - improved reporting of actions and dry run / regrade"

Revision 1.282.2.15 - (view) (download) (annotate) - [select for diffs]
Sun Jun 22 21:01:39 2008 WST (3 years, 10 months ago) by jamiesensei
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_192
Changes since 1.282.2.14: +2 -2 lines
Diff to previous 1.282.2.14 , to branch point 1.282
Fixing typo introduced in 1.282.2.14 version of this file.

Revision 1.304 - (view) (download) (annotate) - [select for diffs]
Sun Jun 22 20:57:44 2008 WST (3 years, 10 months ago) by jamiesensei
Branch: MAIN
Changes since 1.303: +2 -2 lines
Diff to previous 1.303
Fixing typo introduced in 1.298 version of this file.

Revision 1.303 - (view) (download) (annotate) - [select for diffs]
Mon Jun 9 18:00:36 2008 WST (3 years, 11 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.302: +101 -89 lines
Diff to previous 1.302
MDL-15113 Upgrade to DMLLIB 2.0. Needs further testing and bug-fixing.
MDL-15100 Fixed a bug in gradelib.php
Plus edited tablelib.php for table_sql upgrade to dmllib 2.0

Revision 1.302 - (view) (download) (annotate) - [select for diffs]
Mon Jun 2 05:36:12 2008 WST (3 years, 11 months ago) by skodak
Branch: MAIN
Changes since 1.301: +19 -15 lines
Diff to previous 1.301
MDL-14679 towards modform conversion

Revision 1.301 - (view) (download) (annotate) - [select for diffs]
Mon Jun 2 03:09:13 2008 WST (3 years, 11 months ago) by skodak
Branch: MAIN
Changes since 1.300: +3 -3 lines
Diff to previous 1.300
MDL-14679 fixed references to mod.html

Revision 1.300 - (view) (download) (annotate) - [select for diffs]
Mon Jun 2 00:08:16 2008 WST (3 years, 11 months ago) by skodak
Branch: MAIN
Changes since 1.299: +6 -8 lines
Diff to previous 1.299
MDL-14679 removed all instances of get_records_sql_menu()

Revision 1.299 - (view) (download) (annotate) - [select for diffs]
Sat May 31 04:00:20 2008 WST (3 years, 11 months ago) by skodak
Branch: MAIN
Changes since 1.298: +5 -5 lines
Diff to previous 1.298
MDL-14679 finished moodlelib conversion

Revision 1.298 - (view) (download) (annotate) - [select for diffs]
Wed May 21 19:10:06 2008 WST (3 years, 11 months ago) by tjhunt
Branch: MAIN
Changes since 1.297: +4 -4 lines
Diff to previous 1.297
Inconsistency between quiz attempt->id and attempt.uniqueid

Revision 1.282.2.14 - (view) (download) (annotate) - [select for diffs]
Wed May 21 19:10:04 2008 WST (3 years, 11 months ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.282.2.13: +4 -4 lines
Diff to previous 1.282.2.13 , to branch point 1.282
Inconsistency between quiz attempt->id and attempt.uniqueid

Revision 1.297 - (view) (download) (annotate) - [select for diffs]
Wed Mar 19 21:21:56 2008 WST (4 years, 1 month ago) by tjhunt
Branch: MAIN
Changes since 1.296: +19 -17 lines
Diff to previous 1.296
MDL-13978 - Notice when adding a new quiz

Revision 1.282.2.13 - (view) (download) (annotate) - [select for diffs]
Wed Mar 19 21:21:54 2008 WST (4 years, 1 month ago) by tjhunt
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_191
Changes since 1.282.2.12: +19 -17 lines
Diff to previous 1.282.2.12 , to branch point 1.282
MDL-13978 - Notice when adding a new quiz

Revision 1.296 - (view) (download) (annotate) - [select for diffs]
Thu Feb 21 21:22:42 2008 WST (4 years, 2 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.295: +21 -1 lines
Diff to previous 1.295
MDL-11282 Implemented fix. Merging from MOODLE_19_STABLE

Revision 1.282.2.12 - (view) (download) (annotate) - [select for diffs]
Thu Feb 21 21:21:44 2008 WST (4 years, 2 months ago) by nicolasconnault
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_19
Changes since 1.282.2.11: +21 -1 lines
Diff to previous 1.282.2.11 , to branch point 1.282
MDL-11282 Implemented fix

Revision 1.295 - (view) (download) (annotate) - [select for diffs]
Fri Feb 1 23:10:49 2008 WST (4 years, 3 months ago) by skodak
Branch: MAIN
Changes since 1.294: +2 -2 lines
Diff to previous 1.294
MDL-12945 changing get_fast_modinfo() section property to sectionnum to prevent conflicts with real cm->section; full recent activity speedup when printing user pictures in forum; merged from MOODLE_19_STABLE

Revision 1.282.2.11 - (view) (download) (annotate) - [select for diffs]
Fri Feb 1 23:09:29 2008 WST (4 years, 3 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.282.2.10: +2 -2 lines
Diff to previous 1.282.2.10 , to branch point 1.282
MDL-12945 changing get_fast_modinfo() section property to sectionnum to prevent conflicts with real cm->section; full recent activity speedup when printing user pictures in forum

Revision 1.294 - (view) (download) (annotate) - [select for diffs]
Fri Jan 25 05:33:53 2008 WST (4 years, 3 months ago) by skodak
Branch: MAIN
Changes since 1.293: +105 -78 lines
Diff to previous 1.293
MDL-12945 a slightly bigger patch for performance in recent activity and various group related issues + some other fixes - see list of subtasks in tracker; merged from MOODLE_19_STABLE

Revision 1.282.2.10 - (view) (download) (annotate) - [select for diffs]
Fri Jan 25 05:29:32 2008 WST (4 years, 3 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.282.2.9: +105 -78 lines
Diff to previous 1.282.2.9 , to branch point 1.282
MDL-12945 a slightly bigger patch for performance in recent activity and various group related issues + some other fixes - see list of subtasks in tracker

Revision 1.282.2.9 - (view) (download) (annotate) - [select for diffs]
Fri Jan 25 04:11:59 2008 WST (4 years, 3 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.282.2.8: +9 -7 lines
Diff to previous 1.282.2.8 , to branch point 1.282
mod/quiz: fixed fatal error in quiz_print_recent_mod_activity(); Author: Matt Clarkson <mattc@catalyst.net.nz>
backported from HEAD

Revision 1.293 - (view) (download) (annotate) - [select for diffs]
Fri Jan 25 02:13:30 2008 WST (4 years, 3 months ago) by tjhunt
Branch: MAIN
Changes since 1.292: +2 -2 lines
Diff to previous 1.292
MDL-12933 - Bug in mod/quiz/lib.php break MyMoodle - Fix thanks to Eric Merrill.

Revision 1.282.2.8 - (view) (download) (annotate) - [select for diffs]
Fri Jan 25 02:13:29 2008 WST (4 years, 3 months ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.282.2.7: +2 -2 lines
Diff to previous 1.282.2.7 , to branch point 1.282
MDL-12933 - Bug in mod/quiz/lib.php break MyMoodle - Fix thanks to Eric Merrill.

Revision 1.282.2.7 - (view) (download) (annotate) - [select for diffs]
Wed Jan 9 00:23:52 2008 WST (4 years, 4 months ago) by nicolasconnault
Branch: MOODLE_19_STABLE
Changes since 1.282.2.6: +4 -6 lines
Diff to previous 1.282.2.6 , to branch point 1.282
MDL-12829 Removed a hard-coded test integer

Revision 1.292 - (view) (download) (annotate) - [select for diffs]
Fri Jan 4 18:22:25 2008 WST (4 years, 4 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.291: +3 -3 lines
Diff to previous 1.291
MDL-12829 Removed a hard-coded test integer

Revision 1.291 - (view) (download) (annotate) - [select for diffs]
Fri Jan 4 18:21:32 2008 WST (4 years, 4 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.290: +2 -2 lines
Diff to previous 1.290
MDL-12829 Removed a hard-coded test integer

Revision 1.290 - (view) (download) (annotate) - [select for diffs]
Fri Jan 4 15:49:30 2008 WST (4 years, 4 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.289: +3 -3 lines
Diff to previous 1.289
MDL-12829 Applied the sql fix

Revision 1.289 - (view) (download) (annotate) - [select for diffs]
Fri Jan 4 15:24:34 2008 WST (4 years, 4 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.288: +7 -8 lines
Diff to previous 1.288
MDL-12829 Applied the sql fix

Revision 1.288 - (view) (download) (annotate) - [select for diffs]
Wed Dec 26 05:51:24 2007 WST (4 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.287: +4 -1 lines
Diff to previous 1.287
MDL-12458 fixed gradebook upgrade/update problems when not grades yet in activities; merged from MOODLE_19_STABLE

Revision 1.282.2.6 - (view) (download) (annotate) - [select for diffs]
Wed Dec 26 05:50:42 2007 WST (4 years, 4 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.282.2.5: +4 -1 lines
Diff to previous 1.282.2.5 , to branch point 1.282
MDL-12458 fixed gradebook upgrade/update problems when not grades yet in activities

Revision 1.287 - (view) (download) (annotate) - [select for diffs]
Thu Dec 13 02:23:55 2007 WST (4 years, 5 months ago) by tjhunt
Branch: MAIN
Changes since 1.286: +30 -6 lines
Diff to previous 1.286
MDL-9459 - Provide information relating to groups in the summary message "Attemts: 123". Now, depending on the situation, you see one of three messages: "Attempts: 123", "Attemtps 123 (45 from your groups)" or "Attemtps 123 (45 from this group)".

I also took the opportunity to improve the layout of this message slightly, and clarify the message that tells you that you cannot add or remove questions from the quiz if there are attemts.

Merged from MOODLE_19_STABLE.

Revision 1.282.2.5 - (view) (download) (annotate) - [select for diffs]
Thu Dec 13 02:23:38 2007 WST (4 years, 5 months ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.282.2.4: +30 -6 lines
Diff to previous 1.282.2.4 , to branch point 1.282
MDL-9459 - Provide information relating to groups in the summary message "Attemts: 123". Now, depending on the situation, you see one of three messages: "Attempts: 123", "Attemtps 123 (45 from your groups)" or "Attemtps 123 (45 from this group)".

I also took the opportunity to improve the layout of this message slightly, and clarify the message that tells you that you cannot add or remove questions from the quiz if there are attemts.

Revision 1.286 - (view) (download) (annotate) - [select for diffs]
Thu Nov 29 23:43:09 2007 WST (4 years, 5 months ago) by skodak
Branch: MAIN
Changes since 1.285: +84 -64 lines
Diff to previous 1.285
MDL-7028 rewritten course reset + forum role_unassign cleanup fixes; merged from MOODLE_19_STABLE

Revision 1.282.2.4 - (view) (download) (annotate) - [select for diffs]
Thu Nov 29 23:40:56 2007 WST (4 years, 5 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.282.2.3: +84 -64 lines
Diff to previous 1.282.2.3 , to branch point 1.282
MDL-7028 rewritten course reset + forum role_unassign cleanup fixes

Revision 1.282.2.3 - (view) (download) (annotate) - [select for diffs]
Sat Nov 3 01:20:01 2007 WST (4 years, 6 months ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.282.2.2: +1 -1 lines
Diff to previous 1.282.2.2 , to branch point 1.282
Minor whitespace fixups.

Revision 1.282.2.2 - (view) (download) (annotate) - [select for diffs]
Thu Nov 1 17:50:34 2007 WST (4 years, 6 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.282.2.1: +15 -12 lines
Diff to previous 1.282.2.1 , to branch point 1.282
MFC: MDL-11966 implemented dategraded and datesubmitted, tweaked altering of grades depending in hidden grades
MDL-11974 improved gradebook CSS

Revision 1.285 - (view) (download) (annotate) - [select for diffs]
Thu Nov 1 17:25:08 2007 WST (4 years, 6 months ago) by skodak
Branch: MAIN
Changes since 1.284: +15 -12 lines
Diff to previous 1.284
MDL-11966 implemented dategraded and datesubmitted, tweaked altering of grades depending in hidden grades
MDL-11974 improved gradebook CSS

Revision 1.284 - (view) (download) (annotate) - [select for diffs]
Wed Oct 31 04:29:45 2007 WST (4 years, 6 months ago) by tjhunt
Branch: MAIN
Changes since 1.283: +18 -11 lines
Diff to previous 1.283
MDL-6376 - fix minor errors in the previous commit.

More significantly, this patch changes the '1 Students have made 1 attempts' string.

To start with, this code was being produced in five different places, so I made a function to do the work!. Next, as you can see, it is not gramatical. Also, some people find it confusing, as in MDL-6376.

Therefore, it now just says 'Attempts: 1'.

Merged from MOODLE_19_STABLE.

Revision 1.282.2.1 - (view) (download) (annotate) - [select for diffs]
Wed Oct 31 04:28:05 2007 WST (4 years, 6 months ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.282: +18 -11 lines
Diff to previous 1.282
MDL-6376 - fix minor errors in the previous commit.

More significantly, this patch changes the '1 Students have made 1 attempts' string.

To start with, this code was being produced in five different places, so I made a function to do the work!. Next, as you can see, it is not gramatical. Also, some people find it confusing, as in MDL-6376.

Therefore, it now just says 'Attempts: 1'.

Revision 1.283 - (view) (download) (annotate) - [select for diffs]
Thu Oct 25 09:26:17 2007 WST (4 years, 6 months ago) by mattc-catalyst
Branch: MAIN
Changes since 1.282: +4 -3 lines
Diff to previous 1.282
mod/quiz: fixed fatal error in quiz_print_recent_mod_activity()


Author: Matt Clarkson <mattc@catalyst.net.nz>

Revision 1.282 - (view) (download) (annotate) - [select for diffs]
Wed Oct 10 20:19:39 2007 WST (4 years, 7 months ago) by skodak
Branch: MAIN
CVS Tags: MOODLE_19_BETA
Branch point for: MOODLE_19_STABLE
Changes since 1.281: +5 -7 lines
Diff to previous 1.281
MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-)

Revision 1.281 - (view) (download) (annotate) - [select for diffs]
Fri Oct 5 06:57:14 2007 WST (4 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.280: +25 -1 lines
Diff to previous 1.280
MDL-11580 support for hidden state modification in gradebook from activities (quiz now only) - part 1
the hiding/unhiding should be IMO locked in gradebook UI when activity overrides it

Revision 1.280 - (view) (download) (annotate) - [select for diffs]
Fri Sep 21 19:05:09 2007 WST (4 years, 7 months ago) by tjhunt
Branch: MAIN
Changes since 1.279: +92 -1 lines
Diff to previous 1.279
MDL-6376 - Include quizzes on the MyMoodle page. Initial implementation by Stephen Bourget, with refinements by Tim Hunt. The logic for which quizzes are listed is very similar to the lesson module.

Revision 1.279 - (view) (download) (annotate) - [select for diffs]
Wed Sep 19 23:38:15 2007 WST (4 years, 7 months ago) by tjhunt
Branch: MAIN
Changes since 1.278: +56 -24 lines
Diff to previous 1.278
MDL-6043 - supplimental - make corse reset function update quiz open and close dates. Thanks to Shamim Rezaei for the implementation, which I edited slightly.

Revision 1.278 - (view) (download) (annotate) - [select for diffs]
Sat Sep 15 03:32:50 2007 WST (4 years, 8 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.277: +17 -17 lines
Diff to previous 1.277
MDL-11282 Using notice_yesno(), but not sure how to provide a backlink with the cancel action...

Revision 1.261.2.8 - (view) (download) (annotate) - [select for diffs]
Fri Sep 14 01:29:13 2007 WST (4 years, 8 months ago) by tjhunt
Branch: MOODLE_18_STABLE
CVS Tags: MOODLE_1810, MOODLE_1811, MOODLE_1812, MOODLE_1813, MOODLE_1814, MOODLE_183, MOODLE_184, MOODLE_185, MOODLE_186, MOODLE_187, MOODLE_188, MOODLE_189, MOODLE_18_MERGED, MOODLE_18_WEEKLY
Changes since 1.261.2.7: +16 -2 lines
Diff to previous 1.261.2.7 , to branch point 1.261 , to next main 1.406
MDL-11081 and MDL-11211 - Implement quiz_question_list_instances. The lach of this function was causing a horrible dataloss bug: MDL-11211. Fix thanks to Janne Mikkonen, refined by me. Merged from MOODLE_16_STABLE.

Revision 1.277 - (view) (download) (annotate) - [select for diffs]
Fri Sep 14 01:29:08 2007 WST (4 years, 8 months ago) by tjhunt
Branch: MAIN
Changes since 1.276: +16 -2 lines
Diff to previous 1.276
MDL-11081 and MDL-11211 - Implement quiz_question_list_instances. The lach of this function was causing a horrible dataloss bug: MDL-11211. Fix thanks to Janne Mikkonen, refined by me. Merged from MOODLE_16_STABLE.

Revision 1.255.2.5 - (view) (download) (annotate) - [select for diffs]
Fri Sep 14 01:29:02 2007 WST (4 years, 8 months ago) by tjhunt
Branch: MOODLE_17_STABLE
CVS Tags: MOODLE_173, MOODLE_174, MOODLE_175, MOODLE_176, MOODLE_177, MOODLE_17_MERGED, MOODLE_17_WEEKLY
Changes since 1.255.2.4: +16 -2 lines
Diff to previous 1.255.2.4 , to branch point 1.255 , to next main 1.406
MDL-11081 and MDL-11211 - Implement quiz_question_list_instances. The lach of this function was causing a horrible dataloss bug: MDL-11211. Fix thanks to Janne Mikkonen, refined by me. Merged from MOODLE_16_STABLE.

Revision 1.245.6.2 - (view) (download) (annotate) - [select for diffs]
Fri Sep 14 01:28:31 2007 WST (4 years, 8 months ago) by tjhunt
Branch: MOODLE_16_STABLE
CVS Tags: MOODLE_166, MOODLE_167, MOODLE_168, MOODLE_169, MOODLE_16_MERGED, MOODLE_16_WEEKLY
Changes since 1.245.6.1: +17 -3 lines
Diff to previous 1.245.6.1 , to branch point 1.245 , to next main 1.406
MDL-11081 and MDL-11211 - Implement quiz_question_list_instances. The lach of this function was causing a horrible dataloss bug: MDL-11211. Fix thanks to Janne Mikkonen, refined by me.

Revision 1.276 - (view) (download) (annotate) - [select for diffs]
Mon Sep 10 19:07:39 2007 WST (4 years, 8 months ago) by tjhunt
Branch: MAIN
Changes since 1.275: +1 -2 lines
Diff to previous 1.275
Take out duplicate $Id$ CVS tags.

Revision 1.255.2.4 - (view) (download) (annotate) - [select for diffs]
Mon Sep 10 19:06:12 2007 WST (4 years, 8 months ago) by tjhunt
Branch: MOODLE_17_STABLE
Changes since 1.255.2.3: +1 -2 lines
Diff to previous 1.255.2.3 , to branch point 1.255
Take out duplicate $Id$ CVS tags.

Revision 1.261.2.7 - (view) (download) (annotate) - [select for diffs]
Mon Sep 10 19:06:01 2007 WST (4 years, 8 months ago) by tjhunt
Branch: MOODLE_18_STABLE
Changes since 1.261.2.6: +1 -2 lines
Diff to previous 1.261.2.6 , to branch point 1.261
Take out duplicate $Id$ CVS tags.

Revision 1.275 - (view) (download) (annotate) - [select for diffs]
Tue Sep 4 13:56:19 2007 WST (4 years, 8 months ago) by moodler
Branch: MAIN
Changes since 1.274: +4 -3 lines
Diff to previous 1.274
Updating grades will update the grade_item too

Revision 1.261.2.6 - (view) (download) (annotate) - [select for diffs]
Tue Aug 14 21:33:44 2007 WST (4 years, 9 months ago) by tjhunt
Branch: MOODLE_18_STABLE
Changes since 1.261.2.5: +7 -5 lines
Diff to previous 1.261.2.5 , to branch point 1.261
MDL-10834 - Restore of quiz module may create calendar events without a date/time. Fix thanks to Derek Woolhead. Merged from MOODLE_17_STABLE.

Revision 1.274 - (view) (download) (annotate) - [select for diffs]
Tue Aug 14 21:33:39 2007 WST (4 years, 9 months ago) by tjhunt
Branch: MAIN
Changes since 1.273: +7 -5 lines
Diff to previous 1.273
MDL-10834 - Restore of quiz module may create calendar events without a date/time. Fix thanks to Derek Woolhead. Merged from MOODLE_17_STABLE.

Revision 1.255.2.3 - (view) (download) (annotate) - [select for diffs]
Tue Aug 14 21:33:09 2007 WST (4 years, 9 months ago) by tjhunt
Branch: MOODLE_17_STABLE
Changes since 1.255.2.2: +7 -5 lines
Diff to previous 1.255.2.2 , to branch point 1.255
MDL-10834 - Restore of quiz module may create calendar events without a date/time. Fix thanks to Derek Woolhead.

Revision 1.261.2.5 - (view) (download) (annotate) - [select for diffs]
Mon Aug 13 19:20:59 2007 WST (4 years, 9 months ago) by tjhunt
Branch: MOODLE_18_STABLE
Changes since 1.261.2.4: +6 -4 lines
Diff to previous 1.261.2.4 , to branch point 1.261
Notice on quiz config.html page. - backported from HEAD.

Revision 1.273 - (view) (download) (annotate) - [select for diffs]
Mon Aug 13 19:19:51 2007 WST (4 years, 9 months ago) by tjhunt
Branch: MAIN
Changes since 1.272: +6 -4 lines
Diff to previous 1.272
Notice on quiz config.html page.

Revision 1.272 - (view) (download) (annotate) - [select for diffs]
Sat Aug 11 05:04:15 2007 WST (4 years, 9 months ago) by skodak
Branch: MAIN
Changes since 1.271: +3 -4 lines
Diff to previous 1.271
MDL-9551 minor cleanup

Revision 1.261.2.4 - (view) (download) (annotate) - [select for diffs]
Wed Aug 8 19:31:09 2007 WST (4 years, 9 months ago) by tjhunt
Branch: MOODLE_18_STABLE
Changes since 1.261.2.3: +3 -3 lines
Diff to previous 1.261.2.3 , to branch point 1.261
MDL-10759 - Bogus get_context_instance call in quiz_print_recent_mod_activity. Merged from MOODLE_17_STABLE.

Revision 1.271 - (view) (download) (annotate) - [select for diffs]
Wed Aug 8 19:30:50 2007 WST (4 years, 9 months ago) by tjhunt
Branch: MAIN
Changes since 1.270: +3 -3 lines
Diff to previous 1.270
MDL-10759 - Bogus get_context_instance call in quiz_print_recent_mod_activity. Merged from MOODLE_17_STABLE.

Revision 1.255.2.2 - (view) (download) (annotate) - [select for diffs]
Wed Aug 8 19:30:16 2007 WST (4 years, 9 months ago) by tjhunt
Branch: MOODLE_17_STABLE
Changes since 1.255.2.1: +3 -3 lines
Diff to previous 1.255.2.1 , to branch point 1.255
MDL-10759 - Bogus get_context_instance call in quiz_print_recent_mod_activity

Revision 1.270 - (view) (download) (annotate) - [select for diffs]
Fri Aug 3 18:33:33 2007 WST (4 years, 9 months ago) by tjhunt
Branch: MAIN
Changes since 1.269: +3 -10 lines
Diff to previous 1.269
MDL-10690 - Make quiz name a manditory field. Merged from MOODLE_18_STABLE.

Revision 1.261.2.3 - (view) (download) (annotate) - [select for diffs]
Fri Aug 3 18:32:55 2007 WST (4 years, 9 months ago) by tjhunt
Branch: MOODLE_18_STABLE
Changes since 1.261.2.2: +3 -10 lines
Diff to previous 1.261.2.2 , to branch point 1.261
MDL-10690 - Make quiz name a manditory field.

Revision 1.269 - (view) (download) (annotate) - [select for diffs]
Mon Jul 30 18:05:12 2007 WST (4 years, 9 months ago) by tjhunt
Branch: MAIN
Changes since 1.268: +38 -18 lines
Diff to previous 1.268
MDL-10656 - Way to control when Overall feedback is displayed, independantly of the other sorts of feedback. Also, improve the layout of those settings on the quiz editing form.

Revision 1.268 - (view) (download) (annotate) - [select for diffs]
Thu Jun 21 07:06:31 2007 WST (4 years, 10 months ago) by skodak
Branch: MAIN
Changes since 1.267: +4 -4 lines
Diff to previous 1.267
MDL-10202 merge raw and final grade tables

Revision 1.267 - (view) (download) (annotate) - [select for diffs]
Wed Jun 20 23:12:36 2007 WST (4 years, 10 months ago) by tjhunt
Branch: MAIN
Changes since 1.266: +27 -0 lines
Diff to previous 1.266
MDL-10198 - New code to allow files from quiestion attempts to be stored in moodledata and later downloaded. Code thanks to Adriane Boyd, but checked and modified by me, so we share the blame;-)

Revision 1.266 - (view) (download) (annotate) - [select for diffs]
Wed Jun 20 06:17:50 2007 WST (4 years, 10 months ago) by tjhunt
Branch: MAIN
Changes since 1.265: +55 -2 lines
Diff to previous 1.265
MDL-6043 - Implement course reset function for quizzes.

Revision 1.265 - (view) (download) (annotate) - [select for diffs]
Mon Jun 11 17:12:14 2007 WST (4 years, 11 months ago) by skodak
Branch: MAIN
Changes since 1.264: +3 -3 lines
Diff to previous 1.264
MDL-9551 fixed magic quotes when changing grade_item settings

Revision 1.264 - (view) (download) (annotate) - [select for diffs]
Mon Jun 11 06:52:42 2007 WST (4 years, 11 months ago) by skodak
Branch: MAIN
Changes since 1.263: +109 -11 lines
Diff to previous 1.263
MDL-9551 Implemented calls of grade_update() function in Quiz

Revision 1.263 - (view) (download) (annotate) - [select for diffs]
Fri Apr 27 16:33:11 2007 WST (5 years ago) by tjhunt
Branch: MAIN
Branch point for: MOODLE_19_QUESTIONS
Changes since 1.262: +7 -2 lines
Diff to previous 1.262
MDL-9608 - Work around Firefox putting the user's password in the quiz password field. Merged from MOODLE_18_STABLE.

Revision 1.261.2.2 - (view) (download) (annotate) - [select for diffs]
Fri Apr 27 16:32:45 2007 WST (5 years ago) by tjhunt
Branch: MOODLE_18_STABLE
CVS Tags: MOODLE_181, MOODLE_182
Changes since 1.261.2.1: +7 -2 lines
Diff to previous 1.261.2.1 , to branch point 1.261
MDL-9608 - Work around Firefox putting the user's password in the quiz password field.

Revision 1.245.6.1 - (view) (download) (annotate) - [select for diffs]
Sun Mar 25 22:49:46 2007 WST (5 years, 1 month ago) by moodler
Branch: MOODLE_16_STABLE
CVS Tags: MOODLE_165
Changes since 1.245: +4 -3 lines
Diff to previous 1.245
Restoring changes all the changes in MOODLE_16_STABLE since MOODLE_16_BETA.

This had to be done because the MOODLE_16_STABLE branch tags were moved.

Hopefully after this MOODLE_16_STABLE will be back to how it was (and a
proper branch) but some of the history may look a bit odd.

See MDL-9032 for more discussion and details.

Revision 1.262 - (view) (download) (annotate) - [select for diffs]
Wed Feb 28 21:24:54 2007 WST (5 years, 2 months ago) by tjhunt
Branch: MAIN
Changes since 1.261: +47 -45 lines
Diff to previous 1.261
XHTML Strrrrrrict! on quiz module config page.

Fix errors when config changes are saved.

Merged from MOODLE_18_STABLE.

Revision 1.261.2.1 - (view) (download) (annotate) - [select for diffs]
Wed Feb 28 21:24:39 2007 WST (5 years, 2 months ago) by tjhunt
Branch: MOODLE_18_STABLE
CVS Tags: MOODLE_18
Changes since 1.261: +47 -45 lines
Diff to previous 1.261
XHTML Strrrrrrict! on quiz module config page.

Fix errors when config changes are saved.

Revision 1.261 - (view) (download) (annotate) - [select for diffs]
Tue Jan 9 18:08:14 2007 WST (5 years, 4 months ago) by vyshane
Branch: MAIN
CVS Tags: MOODLE_18_BETA
Branch point for: MOODLE_18_STABLE
Changes since 1.260: +3 -3 lines
Diff to previous 1.260
Xhtml fixes for MDL-7861.

Revision 1.260 - (view) (download) (annotate) - [select for diffs]
Mon Jan 8 18:14:19 2007 WST (5 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.259: +3 -3 lines
Diff to previous 1.259
MDL-7861 new class .icon and .iconsmall

Revision 1.259 - (view) (download) (annotate) - [select for diffs]
Wed Jan 3 13:55:23 2007 WST (5 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.258: +4 -4 lines
Diff to previous 1.258
Checking in Nick Freear's changes and evolution of Julette White's code
with a few modifications made to the install process) for further work in HEAD.

See MDL-7380 for details.

Revision 1.258 - (view) (download) (annotate) - [select for diffs]
Thu Dec 28 18:32:52 2006 WST (5 years, 4 months ago) by jamiesensei
Branch: MAIN
Changes since 1.257: +2 -4 lines
Diff to previous 1.257
changes to how we generate the id attribute of forms and the naming convention of forms
migrate blog edit to formslib

Revision 1.257 - (view) (download) (annotate) - [select for diffs]
Tue Dec 19 16:03:21 2006 WST (5 years, 4 months ago) by jamiesensei
Branch: MAIN
CVS Tags: MOODLE_18_GROUPS_PRE_MERGE
Changes since 1.256: +17 -36 lines
Diff to previous 1.256
* Added setAdvanced functionality see http://docs.moodle.org/en/Development:lib/formslib.php_setAdvanced
* Added MoodleQuickForm method closeHeaderBefore($elementName); http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#Use_Fieldsets_to_group_Form_Elements
* Added moodleform method add_action_buttons(); see http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#add_action_buttons.28.24cancel_.3D_true.2C_.24revert_.3D_true.2C_.24submitlabel.3Dnull.29.3B
* is_cancelled method added to moodleform http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
* added hidden labels to elements within groups such as the date_selector select boxes and other elements in 'groups'
* quiz/mod.html migrated to formslib
* glossary/edit.html migrated to formslib
* extended registerNoSubmitButton() functionality to automatically add js to onclick to bypass client side js input validation.
* added no_submit_button_pressed() function that can be used in a similar way to is_cancelled() as a test in the main script to see if some button in the page has been pressed that is a submit button that is used for some dynamic functionality within the form and not to submit the data for the whole form.
* added new condition for disabledIf which allows to disable another form element if no options are selected from within a select element.
* added default 'action' for moodleform  - strip_querystring(qualified_me()) http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page

Revision 1.256.2.1 - (view) (download) (annotate) - [select for diffs]
Wed Dec 13 20:54:18 2006 WST (5 years, 5 months ago) by nfreear
Branch: MOODLE_18_GROUPS
Changes since 1.256: +4 -4 lines
Diff to previous 1.256 , to next main 1.406
Functions to return SQL fragments for groups. Modules, core... no longer need to refer directly to groups DB tables. (Part of MDL-7380, new groups)

Revision 1.256 - (view) (download) (annotate) - [select for diffs]
Tue Oct 31 00:35:53 2006 WST (5 years, 6 months ago) by tjhunt
Branch: MAIN
CVS Tags: MOODLE_18_GROUPS_PRE
Branch point for: MOODLE_18_GROUPS
Changes since 1.255: +3 -3 lines
Diff to previous 1.255
Make General feedback more tolerant of whitespace. Merged from MOODLE_17_STABLE.

Revision 1.255.2.1 - (view) (download) (annotate) - [select for diffs]
Tue Oct 31 00:35:21 2006 WST (5 years, 6 months ago) by tjhunt
Branch: MOODLE_17_STABLE
CVS Tags: MOODLE_17, MOODLE_171, MOODLE_172, MOODLE_17_BETA2
Changes since 1.255: +3 -3 lines
Diff to previous 1.255
Make General feedback more tolerant of whitespace.

Revision 1.255 - (view) (download) (annotate) - [select for diffs]
Tue Sep 19 21:35:43 2006 WST (5 years, 7 months ago) by tjhunt
Branch: MAIN
CVS Tags: MOODLE_17_BETA
Branch point for: MOODLE_17_STABLE
Changes since 1.254: +9 -9 lines
Diff to previous 1.254
Renamed new commentary feature to 'general feedback'.

Revision 1.254 - (view) (download) (annotate) - [select for diffs]
Thu Aug 31 17:17:57 2006 WST (5 years, 8 months ago) by thepurpleblob
Branch: MAIN
Changes since 1.253: +3 -3 lines
Diff to previous 1.253
Fixed syntax error.

Revision 1.253 - (view) (download) (annotate) - [select for diffs]
Thu Aug 31 16:51:09 2006 WST (5 years, 8 months ago) by toyomoyo
Branch: MAIN
Changes since 1.252: +3 -3 lines
Diff to previous 1.252
adding capabilities

Revision 1.252 - (view) (download) (annotate) - [select for diffs]
Wed Aug 23 01:31:26 2006 WST (5 years, 8 months ago) by tjhunt
Branch: MAIN
CVS Tags: MOODLE_17_NEWGROUPS_PRE
Branch point for: MOODLE_17_NEWGROUPS
Changes since 1.251: +92 -22 lines
Diff to previous 1.251
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.

Revision 1.251 - (view) (download) (annotate) - [select for diffs]
Wed Aug 16 16:46:10 2006 WST (5 years, 9 months ago) by tjhunt
Branch: MAIN
Changes since 1.250: +174 -228 lines
Diff to previous 1.250
Remove horrific code duplication in mod/quiz/lib.php.

Revision 1.250 - (view) (download) (annotate) - [select for diffs]
Fri Aug 11 22:59:21 2006 WST (5 years, 9 months ago) by tjhunt
Branch: MAIN
Changes since 1.249: +24 -11 lines
Diff to previous 1.249
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.

Revision 1.249 - (view) (download) (annotate) - [select for diffs]
Fri Aug 4 00:30:38 2006 WST (5 years, 9 months ago) by tjhunt
Branch: MAIN
Changes since 1.248: +3 -2 lines
Diff to previous 1.248
Bug #6206 - Quiz can't be created on some mysql configurations. Merged from MOODLE_1.6_STABLE.

Revision 1.245.2.2 - (view) (download) (annotate) - [select for diffs]
Fri Aug 4 00:30:21 2006 WST (5 years, 9 months ago) by tjhunt
CVS Tags: MOODLE_162, MOODLE_163, MOODLE_164
Changes since 1.245.2.1: +3 -2 lines
Diff to previous 1.245.2.1 , to branch point 1.245 , to next main 1.406
Bug #6206 - Quiz can't be created on some mysql configurations

Revision 1.248 - (view) (download) (annotate) - [select for diffs]
Sat Jun 3 00:02:10 2006 WST (5 years, 11 months ago) by skodak
Branch: MAIN
Changes since 1.247: +3 -3 lines
Diff to previous 1.247
Making sure timelimit is converted to integer before being written to database, otherwise postgreSQL complains. Closing bug 5401; merged from MOODLE_15_STABLE

Revision 1.245.2.1 - (view) (download) (annotate) - [select for diffs]
Sat Jun 3 00:01:05 2006 WST (5 years, 11 months ago) by skodak
CVS Tags: MOODLE_16, MOODLE_161
Changes since 1.245: +3 -3 lines
Diff to previous 1.245
Making sure timelimit is converted to integer before being written to database, otherwise postgreSQL complains. Closing bug 5401; merged from MOODLE_15_STABLE

Revision 1.247 - (view) (download) (annotate) - [select for diffs]
Thu Jun 1 22:27:37 2006 WST (5 years, 11 months ago) by tjhunt
Branch: MAIN
Changes since 1.246: +10 -2 lines
Diff to previous 1.246
Bug 5247: stop people creating tests with a close date before the open date.

Revision 1.246 - (view) (download) (annotate) - [select for diffs]
Wed May 31 18:35:17 2006 WST (5 years, 11 months ago) by tjhunt
Branch: MAIN
Changes since 1.245: +6 -4 lines
Diff to previous 1.245
Fix some Eclipse code style warnings.

Revision 1.217.2.7 - (view) (download) (annotate) - [select for diffs]
Sun May 14 01:28:28 2006 WST (6 years ago) by gustav_delius
Branch: MOODLE_15_STABLE
CVS Tags: MOODLE_154, MOODLE_15_MERGED
Changes since 1.217.2.6: +4 -4 lines
Diff to previous 1.217.2.6 , to branch point 1.217 , to next main 1.406
Making sure timelimit is converted to integer before being written to database, otherwise postgreSQL complains. Closing bug 5401

Revision 1.245 - (view) (download) (annotate) - [select for diffs]
Tue Mar 21 17:24:47 2006 WST (6 years, 1 month ago) by moodler
Branch: MAIN
CVS Tags: MOODLE_16_BETA
Branch point for: MOODLE_16_STABLE, MOODLE_17_ROLES
Changes since 1.244: +2 -3 lines
Diff to previous 1.244
Christian's code to support time delays

Revision 1.244 - (view) (download) (annotate) - [select for diffs]
Tue Mar 21 17:06:33 2006 WST (6 years, 1 month ago) by gustav_delius
Branch: MAIN
Changes since 1.243: +14 -115 lines
Diff to previous 1.243
Moved code to delete questions and question categories to lib/questionlib.php
Also fixed bug 4949

Revision 1.243 - (view) (download) (annotate) - [select for diffs]
Tue Mar 21 07:04:20 2006 WST (6 years, 1 month ago) by gustav_delius
Branch: MAIN
Changes since 1.242: +3 -4 lines
Diff to previous 1.242
Some improvements to delete_question()

Revision 1.242 - (view) (download) (annotate) - [select for diffs]
Tue Mar 21 04:59:46 2006 WST (6 years, 1 month ago) by gustav_delius
Branch: MAIN
Changes since 1.241: +37 -2 lines
Diff to previous 1.241
Moved the quiz constants into lib.php to keep things simple.

Revision 1.241 - (view) (download) (annotate) - [select for diffs]
Tue Mar 21 04:45:55 2006 WST (6 years, 1 month ago) by gustav_delius
Branch: MAIN
Changes since 1.240: +3 -3 lines
Diff to previous 1.240
Renaming constants QUIZ_ADAPTIVE and QUIZ_IGNORE_DUPRESP to QUESTION_..... and moved them to lib/questionlib.php because they are used for question-level options.

Revision 1.240 - (view) (download) (annotate) - [select for diffs]
Sat Mar 18 22:14:54 2006 WST (6 years, 2 months ago) by gustav_delius
Branch: MAIN
Changes since 1.239: +7 -3 lines
Diff to previous 1.239
Multianswer restore now works.
Timelimit is rounded to integer before saving in the database
Some more diagnostic error messages
Towards more plugable question types: $QUIZ_MENU is now populated by the question types themselves.

Revision 1.217.2.6 - (view) (download) (annotate) - [select for diffs]
Wed Mar 8 07:44:01 2006 WST (6 years, 2 months ago) by skodak
Branch: MOODLE_15_STABLE
Changes since 1.217.2.5: +3 -3 lines
Diff to previous 1.217.2.5 , to branch point 1.217
fixed includes in included files - see bug #4891; backported from HEAD

Revision 1.239 - (view) (download) (annotate) - [select for diffs]
Wed Mar 8 07:41:21 2006 WST (6 years, 2 months ago) by skodak
Branch: MAIN
Changes since 1.238: +3 -3 lines
Diff to previous 1.238
fixed includes in included files - see bug #4891

Revision 1.238 - (view) (download) (annotate) - [select for diffs]
Wed Mar 1 15:02:58 2006 WST (6 years, 2 months ago) by gustav_delius
Branch: MAIN
Changes since 1.237: +8 -8 lines
Diff to previous 1.237
Some little fixes and more renaming to cleanly separate question code from quiz code

Renaming tables:
quiz_answers -> question_answers
quiz_categories -> question_categories

Renaming functions:
quiz_get_category_menu -> question_category_menu
quiz_get_category_coursename -> question_category_coursename
quiz_categorylist -> question_categorylist

Revision 1.237 - (view) (download) (annotate) - [select for diffs]
Tue Feb 28 17:25:58 2006 WST (6 years, 2 months ago) by gustav_delius
Branch: MAIN
Changes since 1.236: +6 -6 lines
Diff to previous 1.236
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

Revision 1.236 - (view) (download) (annotate) - [select for diffs]
Wed Feb 15 16:34:36 2006 WST (6 years, 3 months ago) by gustav_delius
Branch: MAIN
Changes since 1.235: +4 -3 lines
Diff to previous 1.235
Renamed table quiz_newest_states to question_sessions

Revision 1.235 - (view) (download) (annotate) - [select for diffs]
Mon Feb 13 05:08:43 2006 WST (6 years, 3 months ago) by gustav_delius
Branch: MAIN
Changes since 1.234: +3 -3 lines
Diff to previous 1.234
Avoid error messages in case $quiz->sumgrades is zero, closing bug 4454. Merged from STABLE

Revision 1.217.2.5 - (view) (download) (annotate) - [select for diffs]
Mon Feb 13 05:02:16 2006 WST (6 years, 3 months ago) by gustav_delius
Branch: MOODLE_15_STABLE
Changes since 1.217.2.4: +3 -3 lines
Diff to previous 1.217.2.4 , to branch point 1.217
Avoid error messages in case $quiz->sumgrades is zero, closing bug 4454

Revision 1.234 - (view) (download) (annotate) - [select for diffs]
Tue Feb 7 08:44:21 2006 WST (6 years, 3 months ago) by gustav_delius
Branch: MAIN
Changes since 1.233: +4 -21 lines
Diff to previous 1.233
Introduced function quiz_delete_question() and questiontype methods delete_question()

Revision 1.233 - (view) (download) (annotate) - [select for diffs]
Tue Feb 7 04:44:43 2006 WST (6 years, 3 months ago) by gustav_delius
Branch: MAIN
Changes since 1.232: +2 -5 lines
Diff to previous 1.232
reverting change made by Martin D when going to version 1.230

Revision 1.229.6.1 - (view) (download) (annotate) - [select for diffs]
Wed Dec 14 12:15:25 2005 WST (6 years, 5 months ago) by patrickslee
Branch: MOODLE_16_MULTIENROL
Changes since 1.229: +12 -7 lines
Diff to previous 1.229 , to next main 1.406
Merged with MOODLE_16_MULTIENROL_MP1

Revision 1.232 - (view) (download) (annotate) - [select for diffs]
Thu Nov 24 06:22:44 2005 WST (6 years, 5 months ago) by defacer
Branch: MAIN
CVS Tags: MOODLE_16_MULTIENROL_MP1
Changes since 1.231: +1 -0 lines
Diff to previous 1.231
The bug where an event was not created for closing-time-only-supplied
quizzes also existed when updating a quiz instance (not only adding)...

Revision 1.231 - (view) (download) (annotate) - [select for diffs]
Thu Nov 24 05:34:48 2005 WST (6 years, 5 months ago) by defacer
Branch: MAIN
Changes since 1.230: +1 -0 lines
Diff to previous 1.230
Fix for bug 4358:

No "Quiz closes" event was created for quizzes which ONLY had a closing date

Revision 1.230 - (view) (download) (annotate) - [select for diffs]
Tue Nov 1 11:29:57 2005 WST (6 years, 6 months ago) by moodler
Branch: MAIN
CVS Tags: MOODLE_16_UTF8_PRE
Branch point for: MOODLE_16_UTF8
Changes since 1.229: +10 -7 lines
Diff to previous 1.229
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?)

Revision 1.217.2.4 - (view) (download) (annotate) - [select for diffs]
Thu Sep 29 06:35:54 2005 WST (6 years, 7 months ago) by mindforge
Branch: MOODLE_15_STABLE
CVS Tags: MOODLE_153
Changes since 1.217.2.3: +10 -7 lines
Diff to previous 1.217.2.3 , to branch point 1.217
Added code to delete records from quiz_newest_states when a quiz instance is deleted.

Revision 1.229 - (view) (download) (annotate) - [select for diffs]
Tue Sep 20 06:35:03 2005 WST (6 years, 7 months ago) by michaelpenne
Branch: MAIN
CVS Tags: MOODLE_16_AUTHREFACTOR_PRE, MOODLE_16_MULTIENROL_PRE
Branch point for: MOODLE_16_AUTHREFACTOR, MOODLE_16_MULTIENROL
Changes since 1.228: +3 -2 lines
Diff to previous 1.228
When one deletes a course, essay records in the quiz_essay are now deleted

Revision 1.228 - (view) (download) (annotate) - [select for diffs]
Mon Sep 19 08:25:11 2005 WST (6 years, 7 months ago) by patrickslee
Branch: MAIN
Changes since 1.227: +4 -4 lines
Diff to previous 1.227
Corrected some table/field names (Merged from MOODLE_15_STABLE)

Revision 1.217.2.3 - (view) (download) (annotate) - [select for diffs]
Mon Sep 19 08:07:57 2005 WST (6 years, 7 months ago) by patrickslee
Branch: MOODLE_15_STABLE
Changes since 1.217.2.2: +4 -4 lines
Diff to previous 1.217.2.2 , to branch point 1.217
Corrected some table/field names

Revision 1.227 - (view) (download) (annotate) - [select for diffs]
Thu Sep 1 12:14:30 2005 WST (6 years, 8 months ago) by mjollnir_
Branch: MAIN
Changes since 1.226: +8 -2 lines
Diff to previous 1.226
Initial checkin of stats (from processing the log table).
I will write up some information about it for the developers wiki.

Revision 1.226 - (view) (download) (annotate) - [select for diffs]
Sat Aug 27 03:12:17 2005 WST (6 years, 8 months ago) by gustav_delius
Branch: MAIN
Changes since 1.225: +3 -3 lines
Diff to previous 1.225
A bit of code cleanup as suggested by Olaf Rempel in bug 3881

Revision 1.225 - (view) (download) (annotate) - [select for diffs]
Sat Aug 27 02:47:24 2005 WST (6 years, 8 months ago) by gustav_delius
Branch: MAIN
Changes since 1.224: +7 -12 lines
Diff to previous 1.224
Removed the restriction that the quiz timelimit has to be less than the session timeout

Revision 1.224 - (view) (download) (annotate) - [select for diffs]
Sat Aug 27 01:57:36 2005 WST (6 years, 8 months ago) by gustav_delius
Branch: MAIN
Changes since 1.223: +12 -2 lines
Diff to previous 1.223
Removed the restriction that the quiz timelimit has to be less than the session timeout

Revision 1.223 - (view) (download) (annotate) - [select for diffs]
Fri Jul 8 01:16:49 2005 WST (6 years, 10 months ago) by gustav_delius
Branch: MAIN
Changes since 1.222: +89 -40 lines
Diff to previous 1.222
Due date and start date are now optional, as requested in bug 867 and bug 3635

Revision 1.222 - (view) (download) (annotate) - [select for diffs]
Wed Jul 6 14:44:18 2005 WST (6 years, 10 months ago) by gustav_delius
Branch: MAIN
Changes since 1.221: +3 -10 lines
Diff to previous 1.221
Moved constants into constants.php so that they can be loaded where needed.

Revision 1.221 - (view) (download) (annotate) - [select for diffs]
Sun Jul 3 17:53:02 2005 WST (6 years, 10 months ago) by gustav_delius
Branch: MAIN
Changes since 1.220: +2 -46 lines
Diff to previous 1.220
More steps towards the separation of questions from the quiz module.

Revision 1.220 - (view) (download) (annotate) - [select for diffs]
Sun Jul 3 02:14:48 2005 WST (6 years, 10 months ago) by gustav_delius
Branch: MAIN
Changes since 1.219: +6 -3 lines
Diff to previous 1.219
I have introduced the new field $attempt->uniqueid, see http://mantis.york.ac.uk/moodle/mod/forum/discuss.php?d=852#3380

Revision 1.219 - (view) (download) (annotate) - [select for diffs]
Sat Jun 4 23:42:01 2005 WST (6 years, 11 months ago) by stronk7
Branch: MAIN
Changes since 1.218: +4 -4 lines
Diff to previous 1.218
Changed name of the container category a bit and avoided one notice.

Merged from MOODLE_15_STABLE

Revision 1.217.2.2 - (view) (download) (annotate) - [select for diffs]
Sat Jun 4 23:37:40 2005 WST (6 years, 11 months ago) by stronk7
Branch: MOODLE_15_STABLE
CVS Tags: MOODLE_15, MOODLE_151, MOODLE_152
Changes since 1.217.2.1: +4 -4 lines
Diff to previous 1.217.2.1 , to branch point 1.217
Changed name of the container category a bit and avoided one notice.

Revision 1.218 - (view) (download) (annotate) - [select for diffs]
Wed Jun 1 06:35:04 2005 WST (6 years, 11 months ago) by stronk7
Branch: MAIN
Changes since 1.217: +124 -23 lines
Diff to previous 1.217
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

Revision 1.217.2.1 - (view) (download) (annotate) - [select for diffs]
Wed Jun 1 06:31:22 2005 WST (6 years, 11 months ago) by stronk7
Branch: MOODLE_15_STABLE
Changes since 1.217: +124 -23 lines
Diff to previous 1.217
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!

Revision 1.217 - (view) (download) (annotate) - [select for diffs]
Sat May 7 21:48:20 2005 WST (7 years ago) by gustav_delius
Branch: MAIN
CVS Tags: MOODLE_15_BETA
Branch point for: MOODLE_15_STABLE
Changes since 1.216: +5 -5 lines
Diff to previous 1.216
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.

Revision 1.216 - (view) (download) (annotate) - [select for diffs]
Fri May 6 14:23:56 2005 WST (7 years ago) by gustav_delius
Branch: MAIN
Changes since 1.215: +177 -5 lines
Diff to previous 1.215
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.

Revision 1.211.2.7 - (view) (download) (annotate) - [select for diffs]
Fri Apr 29 22:14:30 2005 WST (7 years ago) by gustav_delius
Branch: MOODLE_15_QUIZREFACTOR
Changes since 1.211.2.6: +4 -3 lines
Diff to previous 1.211.2.6 , to branch point 1.211 , to next main 1.406
fix handling of adaptive option

Revision 1.211.2.6 - (view) (download) (annotate) - [select for diffs]
Fri Apr 29 19:25:55 2005 WST (7 years ago) by gustav_delius
Branch: MOODLE_15_QUIZREFACTOR
Changes since 1.211.2.5: +142 -2 lines
Diff to previous 1.211.2.5 , to branch point 1.211
introduced new review options scheme, see http://moodle.org/mod/forum/discuss.php?d=16709
tabs also on category.php
new field optionflags in quiz table to provide a more practical way of handling large numbers of yes/no options
delete old teacher preview attempts when the quiz is modified
removed unnecessary question->lenght field
state sequences numbers start at zero
taken out "Edit questions" button from view.php (its a tab now)
$quiz->markindividual is now called $quiz->adaptive and is stored in $quiz->optionflags
sometimes we want none of the tabs selected
mysql.php is in a state of transition.

Revision 1.211.2.5 - (view) (download) (annotate) - [select for diffs]
Mon Apr 25 23:11:44 2005 WST (7 years ago) by gustav_delius
Branch: MOODLE_15_QUIZREFACTOR
Changes since 1.211.2.4: +21 -2 lines
Diff to previous 1.211.2.4 , to branch point 1.211
quiz_user_complete contributed by Hiroto Kagotani

Revision 1.211.2.4 - (view) (download) (annotate) - [select for diffs]
Tue Apr 19 23:19:53 2005 WST (7 years ago) by gustav_delius
Branch: MOODLE_15_QUIZREFACTOR
Changes since 1.211.2.3: +15 -3 lines
Diff to previous 1.211.2.3 , to branch point 1.211
Made some error strings translateable
Let teachers know if they preview a quiz that is not available to students
forcing new attempt no only works when quiz is password protected
Don't print quiz intro on attempt page
On category edit page show only categories that belong to the current course
Allow hiding of page breaks
Don't show question numbers on edit page if questions are shuffled randomly
Move functions used only on edit.php out of locallib.php onto edit.php
Towards taking questionsperpage into account when adding questions
Preview link on report.php no longer opens popup
Fixed bug with paging on review page
Only one "Continue" button on review page and also renamed it to "Close review"

Revision 1.211.2.3 - (view) (download) (annotate) - [select for diffs]
Sat Apr 9 17:26:32 2005 WST (7 years, 1 month ago) by gustav_delius
Branch: MOODLE_15_QUIZREFACTOR
Changes since 1.211.2.2: +5 -3 lines
Diff to previous 1.211.2.2 , to branch point 1.211
Merged from HEAD

Revision 1.215 - (view) (download) (annotate) - [select for diffs]
Sun Apr 3 07:19:01 2005 WST (7 years, 1 month ago) by stronk7
Branch: MAIN
CVS Tags: MOODLE_15_QUIZREFACTOR_MERGED
Changes since 1.214: +2 -2 lines
Diff to previous 1.214
Now xxx_print_recent_mod_activity() supports filterall.
(assignment, forum, quiz and workshop)

Revision 1.214 - (view) (download) (annotate) - [select for diffs]
Sat Apr 2 19:32:21 2005 WST (7 years, 1 month ago) by stronk7
Branch: MAIN
Changes since 1.213: +3 -1 lines
Diff to previous 1.213
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

Revision 1.175.2.7 - (view) (download) (annotate) - [select for diffs]
Sat Apr 2 19:24:22 2005 WST (7 years, 1 month ago) by stronk7
Branch: MOODLE_14_STABLE
CVS Tags: MOODLE_145, MOODLE_14_MERGED
Changes since 1.175.2.6: +3 -1 lines
Diff to previous 1.175.2.6 , to branch point 1.175 , to next main 1.406
Now course/recent.php works under PHP5.
See bug 2828
(http://moodle.org/bugs/bug.php?op=show&bugid=2828)

Revision 1.213 - (view) (download) (annotate) - [select for diffs]
Thu Mar 24 04:59:28 2005 WST (7 years, 1 month ago) by gustav_delius
Branch: MAIN
Changes since 1.212: +2 -2 lines
Diff to previous 1.212
Renamed quiz_question_version to quiz_question_versions as suggested by Eloy in bug 2777

Revision 1.211.2.2 - (view) (download) (annotate) - [select for diffs]
Tue Mar 22 02:59:27 2005 WST (7 years, 1 month ago) by gustav_delius
Branch: MOODLE_15_QUIZREFACTOR
Changes since 1.211.2.1: +25 -7 lines
Diff to previous 1.211.2.1 , to branch point 1.211
Merged from HEAD

Revision 1.212 - (view) (download) (annotate) - [select for diffs]
Mon Mar 21 04:00:43 2005 WST (7 years, 1 month ago) by stronk7
Branch: MAIN
Changes since 1.211: +25 -7 lines
Diff to previous 1.211
Now, at backup time (not restore yet):
- quiz_questions->hidden
- quiz_responses->originalquestion
- quiz_question_version table
are properly exported. Restore code coming soon.

Revision 1.211.2.1 - (view) (download) (annotate) - [select for diffs]
Thu Mar 17 05:51:57 2005 WST (7 years, 2 months ago) by gustav_delius
Branch: MOODLE_15_QUIZREFACTOR
Changes since 1.211: +3 -3 lines
Diff to previous 1.211
First commit of Julian and Alex's new quiz module code. Still unfinished.

Revision 1.211 - (view) (download) (annotate) - [select for diffs]
Mon Feb 28 12:23:52 2005 WST (7 years, 2 months ago) by defacer
Branch: MAIN
CVS Tags: MOODLE_15_QUIZREFACTOR_PRE
Branch point for: MOODLE_15_QUIZREFACTOR
Changes since 1.210: +3 -1 lines
Diff to previous 1.210
Added require_once for pagelib.php.

Now deleting courses with these activities in works just fine once more!

Revision 1.210 - (view) (download) (annotate) - [select for diffs]
Mon Feb 28 12:18:13 2005 WST (7 years, 2 months ago) by defacer
Branch: MAIN
Changes since 1.209: +8 -1 lines
Diff to previous 1.209
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.

Revision 1.209 - (view) (download) (annotate) - [select for diffs]
Mon Feb 28 11:59:23 2005 WST (7 years, 2 months ago) by defacer
Branch: MAIN
Changes since 1.208: +1 -5 lines
Diff to previous 1.208
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.

Revision 1.208 - (view) (download) (annotate) - [select for diffs]
Fri Feb 18 22:42:04 2005 WST (7 years, 2 months ago) by defacer
Branch: MAIN
Changes since 1.207: +2 -2 lines
Diff to previous 1.207
Fix for bug 2584:

All floatval() calls changed to (float) casts.

Revision 1.207 - (view) (download) (annotate) - [select for diffs]
Tue Feb 15 03:57:45 2005 WST (7 years, 3 months ago) by stronk7
Branch: MAIN
Changes since 1.206: +2 -2 lines
Diff to previous 1.206
One more use of decimalpoints

Revision 1.206 - (view) (download) (annotate) - [select for diffs]
Sun Feb 13 08:42:28 2005 WST (7 years, 3 months ago) by stronk7
Branch: MAIN
Changes since 1.205: +2 -2 lines
Diff to previous 1.205
Now retrieving only needed fields!

Revision 1.205 - (view) (download) (annotate) - [select for diffs]
Sun Feb 6 04:00:15 2005 WST (7 years, 3 months ago) by gustav_delius
Branch: MAIN
Changes since 1.204: +2 -2 lines
Diff to previous 1.204
fixed my own type (missing ;)

Revision 1.204 - (view) (download) (annotate) - [select for diffs]
Sun Feb 6 01:28:04 2005 WST (7 years, 3 months ago) by gustav_delius
Branch: MAIN
Changes since 1.203: +6 -6 lines
Diff to previous 1.203
Taken out some $THEME

Revision 1.203 - (view) (download) (annotate) - [select for diffs]
Tue Feb 1 15:40:58 2005 WST (7 years, 3 months ago) by defacer
Branch: MAIN
Changes since 1.202: +5 -1 lines
Diff to previous 1.202
Don't forget to kill all our block instances if we are deleted.

Revision 1.202 - (view) (download) (annotate) - [select for diffs]
Thu Jan 27 10:30:32 2005 WST (7 years, 3 months ago) by defacer
Branch: MAIN
Changes since 1.201: +5 -5 lines
Diff to previous 1.201
Double quotes to single and blah blah.

Revision 1.201 - (view) (download) (annotate) - [select for diffs]
Thu Jan 27 10:28:04 2005 WST (7 years, 3 months ago) by defacer
Branch: MAIN
Changes since 1.200: +4 -5 lines
Diff to previous 1.200
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.

Revision 1.200 - (view) (download) (annotate) - [select for diffs]
Sun Jan 23 02:17:32 2005 WST (7 years, 3 months ago) by gustav_delius
Branch: MAIN
Changes since 1.199: +10 -9 lines
Diff to previous 1.199
better parameter validation and general code cleanup for edit.php

Revision 1.199 - (view) (download) (annotate) - [select for diffs]
Sat Jan 22 23:42:21 2005 WST (7 years, 3 months ago) by gustav_delius
Branch: MAIN
Changes since 1.198: +1 -46 lines
Diff to previous 1.198
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

Revision 1.198 - (view) (download) (annotate) - [select for diffs]
Thu Jan 13 11:04:48 2005 WST (7 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.197: +104 -1 lines
Diff to previous 1.197
Recent activity functions should have been in lib.php, not locallib.php

Revision 1.175.2.6 - (view) (download) (annotate) - [select for diffs]
Thu Jan 13 10:55:38 2005 WST (7 years, 4 months ago) by moodler
Branch: MOODLE_14_STABLE
CVS Tags: MOODLE_144
Changes since 1.175.2.5: +2 -2 lines
Diff to previous 1.175.2.5 , to branch point 1.175
isteacher() was called incorrectly (bug #2379)

Revision 1.197 - (view) (download) (annotate) - [select for diffs]
Sun Jan 9 04:05:59 2005 WST (7 years, 4 months ago) by gustav_delius
Branch: MAIN
Changes since 1.196: +1 -1905 lines
Diff to previous 1.196
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.

Revision 1.196 - (view) (download) (annotate) - [select for diffs]
Thu Jan 6 01:27:20 2005 WST (7 years, 4 months ago) by gustav_delius
Branch: MAIN
Changes since 1.195: +40 -12 lines
Diff to previous 1.195
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.

Revision 1.195 - (view) (download) (annotate) - [select for diffs]
Mon Jan 3 08:31:30 2005 WST (7 years, 4 months ago) by kaipe
Branch: MAIN
Changes since 1.194: +200 -33 lines
Diff to previous 1.194
New feature:
Maximum-number-of-questions-per-page

Revision 1.194 - (view) (download) (annotate) - [select for diffs]
Sun Jan 2 23:10:48 2005 WST (7 years, 4 months ago) by gustav_delius
Branch: MAIN
Changes since 1.193: +64 -13 lines
Diff to previous 1.193
Hierarchical question categories from mediagonal, see http://moodle.org/bugs/bug.php?op=show&bugid=1947

Revision 1.193 - (view) (download) (annotate) - [select for diffs]
Sun Jan 2 15:15:17 2005 WST (7 years, 4 months ago) by gustav_delius
Branch: MAIN
Changes since 1.192: +23 -10 lines
Diff to previous 1.192
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.

Revision 1.192 - (view) (download) (annotate) - [select for diffs]
Thu Dec 30 16:28:58 2004 WST (7 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.191: +3 -3 lines
Diff to previous 1.191
Use the proper preview image 11x11

Revision 1.191 - (view) (download) (annotate) - [select for diffs]
Thu Dec 30 06:57:34 2004 WST (7 years, 4 months ago) by gustav_delius
Branch: MAIN
Changes since 1.190: +28 -26 lines
Diff to previous 1.190
Changed user interface for adding multiple random questions, see http://moodle.org/mod/forum/discuss.php?d=16531#78785

Revision 1.190 - (view) (download) (annotate) - [select for diffs]
Wed Dec 29 18:03:53 2004 WST (7 years, 4 months ago) by gustav_delius
Branch: MAIN
Changes since 1.189: +11 -10 lines
Diff to previous 1.189
added alt text to icons

Revision 1.189 - (view) (download) (annotate) - [select for diffs]
Wed Dec 29 15:19:54 2004 WST (7 years, 4 months ago) by gustav_delius
Branch: MAIN
Changes since 1.188: +8 -7 lines
Diff to previous 1.188
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

Revision 1.188 - (view) (download) (annotate) - [select for diffs]
Mon Dec 27 22:52:24 2004 WST (7 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.187: +24 -8 lines
Diff to previous 1.187
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.

Revision 1.187 - (view) (download) (annotate) - [select for diffs]
Thu Dec 23 15:28:14 2004 WST (7 years, 4 months ago) by gustav_delius
Branch: MAIN
Changes since 1.186: +28 -19 lines
Diff to previous 1.186
Fixed event handling. Events must be deleted with delete_event.

Instead of modifying event dates the quiz module currently deletes them and adds new ones. This could be improved in the future.

Revision 1.186 - (view) (download) (annotate) - [select for diffs]
Sat Dec 18 21:55:18 2004 WST (7 years, 4 months ago) by kaipe
Branch: MAIN
Changes since 1.185: +1 -66 lines
Diff to previous 1.185
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.

Revision 1.175.2.5 - (view) (download) (annotate) - [select for diffs]
Wed Dec 15 03:07:16 2004 WST (7 years, 5 months ago) by skodak
Branch: MOODLE_14_STABLE
CVS Tags: MOODLE_143
Changes since 1.175.2.4: +5 -1 lines
Diff to previous 1.175.2.4 , to branch point 1.175
preparation for new handling of uploaded files (to simplify testing of new code from 1.5dev)

Revision 1.185 - (view) (download) (annotate) - [select for diffs]
Wed Dec 15 02:57:35 2004 WST (7 years, 5 months ago) by skodak
Branch: MAIN
Changes since 1.184: +5 -1 lines
Diff to previous 1.184
new handling of uploaded files, please TEST, TEST, TEST

Revision 1.184 - (view) (download) (annotate) - [select for diffs]
Thu Nov 25 18:01:53 2004 WST (7 years, 5 months ago) by moodler
Branch: MAIN
Changes since 1.183: +2 -2 lines
Diff to previous 1.183
Changes for XHTML and accessibility compatibility

Revision 1.183 - (view) (download) (annotate) - [select for diffs]
Thu Nov 18 15:32:31 2004 WST (7 years, 5 months ago) by moodler
Branch: MAIN
Changes since 1.182: +10 -5 lines
Diff to previous 1.182
Merged default categpory fix from stable

Revision 1.175.2.4 - (view) (download) (annotate) - [select for diffs]
Thu Nov 18 15:31:02 2004 WST (7 years, 5 months ago) by moodler
Branch: MOODLE_14_STABLE
Changes since 1.175.2.3: +10 -5 lines
Diff to previous 1.175.2.3 , to branch point 1.175
First quiz edit in a new course now always has a default category defined

Revision 1.182 - (view) (download) (annotate) - [select for diffs]
Thu Nov 11 20:06:53 2004 WST (7 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.181: +7 -6 lines
Diff to previous 1.181
Changes for XHTML and accessibility compliance

Revision 1.181 - (view) (download) (annotate) - [select for diffs]
Wed Nov 10 22:06:20 2004 WST (7 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.180: +5 -1 lines
Diff to previous 1.180
Merged robustness check from stable

Revision 1.175.2.3 - (view) (download) (annotate) - [select for diffs]
Wed Nov 10 22:05:01 2004 WST (7 years, 6 months ago) by moodler
Branch: MOODLE_14_STABLE
Changes since 1.175.2.2: +5 -1 lines
Diff to previous 1.175.2.2 , to branch point 1.175
A robustness check when dealing with unexpected question data.

Shouldn't ever be needed, but I can't yet see what is causing the
situation I'm seeing on a couple of sites where a question doesn't
have a type, and this solves it neatly.

Revision 1.180 - (view) (download) (annotate) - [select for diffs]
Sun Oct 17 01:30:51 2004 WST (7 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.179: +5 -1 lines
Diff to previous 1.179
Merged from stable

Revision 1.175.2.2 - (view) (download) (annotate) - [select for diffs]
Sat Oct 16 18:15:26 2004 WST (7 years, 7 months ago) by moodler
Branch: MOODLE_14_STABLE
CVS Tags: MOODLE_142
Changes since 1.175.2.1: +5 -1 lines
Diff to previous 1.175.2.1 , to branch point 1.175
Added some robustness

Revision 1.179 - (view) (download) (annotate) - [select for diffs]
Fri Sep 17 01:13:27 2004 WST (7 years, 8 months ago) by gustav_delius
Branch: MAIN
Changes since 1.178: +18 -18 lines
Diff to previous 1.178
XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding

Revision 1.178 - (view) (download) (annotate) - [select for diffs]
Thu Sep 16 14:35:49 2004 WST (7 years, 8 months ago) by kaipe
Branch: MAIN
Changes since 1.177: +168 -95 lines
Diff to previous 1.177
Fixes bug #1854

Revision 1.177 - (view) (download) (annotate) - [select for diffs]
Mon Sep 13 00:55:04 2004 WST (7 years, 8 months ago) by gustav_delius
Branch: MAIN
Changes since 1.176: +7 -7 lines
Diff to previous 1.176
fixed capitalization and quoting of attribute values

Revision 1.176 - (view) (download) (annotate) - [select for diffs]
Sun Sep 12 22:41:25 2004 WST (7 years, 8 months ago) by gustav_delius
Branch: MAIN
Changes since 1.175: +2 -2 lines
Diff to previous 1.175
closed <input /> <br /> <hr />

Revision 1.175.2.1 - (view) (download) (annotate) - [select for diffs]
Thu Aug 26 00:03:39 2004 WST (7 years, 8 months ago) by moodler
Branch: MOODLE_14_STABLE
CVS Tags: MOODLE_14, MOODLE_141
Changes since 1.175: +9 -1 lines
Diff to previous 1.175
This hack doesn't work, and it doesn't matter, but I'm leaving it in
in case someone can fix it later

Revision 1.175 - (view) (download) (annotate) - [select for diffs]
Tue Aug 24 00:46:50 2004 WST (7 years, 8 months ago) by moodler
Branch: MAIN
CVS Tags: MOODLE_13_MERGED, MOODLE_14_BETA, MOODLE_15_LDAP_PRE
Branch point for: MOODLE_14_STABLE, MOODLE_15_LDAP
Changes since 1.174: +84 -84 lines
Diff to previous 1.174
Tidying up Howard's wierd indenting.   ;-)

Revision 1.174 - (view) (download) (annotate) - [select for diffs]
Mon Aug 16 23:16:26 2004 WST (7 years, 9 months ago) by moodler
Branch: MAIN
Changes since 1.173: +8 -1 lines
Diff to previous 1.173
Added a new preview/test feature for quiz questions, sent in by

  Pavel <paolo@psychpan.waw.pl>

Thanks to Przemyslaw, too!

Revision 1.173 - (view) (download) (annotate) - [select for diffs]
Sat Aug 14 20:42:54 2004 WST (7 years, 9 months ago) by moodler
Branch: MAIN
Changes since 1.172: +4 -3 lines
Diff to previous 1.172
Fixed some notices

Revision 1.172 - (view) (download) (annotate) - [select for diffs]
Sun Aug 8 23:09:39 2004 WST (7 years, 9 months ago) by moodler
Branch: MAIN
Changes since 1.171: +3 -3 lines
Diff to previous 1.171
And some more

Revision 1.171 - (view) (download) (annotate) - [select for diffs]
Sun Aug 8 23:08:50 2004 WST (7 years, 9 months ago) by moodler
Branch: MAIN
Changes since 1.170: +2 -2 lines
Diff to previous 1.170
Fixed bug when calling instance_is_visible()

Revision 1.170 - (view) (download) (annotate) - [select for diffs]
Fri Aug 6 19:11:51 2004 WST (7 years, 9 months ago) by thepurpleblob
Branch: MAIN
Changes since 1.169: +3 -3 lines
Diff to previous 1.169
export filename does not now have .txt extension - this is selected by overridable
method on format.php

Revision 1.169 - (view) (download) (annotate) - [select for diffs]
Thu Aug 5 13:31:36 2004 WST (7 years, 9 months ago) by moodler
Branch: MAIN
Changes since 1.168: +40 -42 lines
Diff to previous 1.168
No checking is now done on question name and question text.

If question name is empty, then it's assigned to be same as the question text.

The question text can now be empty if people want that.

Revision 1.168 - (view) (download) (annotate) - [select for diffs]
Thu Aug 5 07:35:17 2004 WST (7 years, 9 months ago) by kaipe
Branch: MAIN
Changes since 1.167: +6 -1 lines
Diff to previous 1.167
Took care of some issues concerning the use of
individual quiz files in datasetdependent questions

Revision 1.152.4.4 - (view) (download) (annotate) - [select for diffs]
Mon Aug 2 14:46:07 2004 WST (7 years, 9 months ago) by moodler
Branch: MOODLE_13_STABLE
CVS Tags: MOODLE_134, MOODLE_135
Changes since 1.152.4.3: +5 -2 lines
Diff to previous 1.152.4.3 , to branch point 1.152 , to next main 1.406
Fixes for some cases where shortanswer responses contain commas

Revision 1.152.4.3 - (view) (download) (annotate) - [select for diffs]
Sat Jul 31 17:33:53 2004 WST (7 years, 9 months ago) by moodler
Branch: MOODLE_13_STABLE
Changes since 1.152.4.2: +3 -2 lines
Diff to previous 1.152.4.2 , to branch point 1.152
Changed an error() to a notify() so things can continue as much as possible

Revision 1.167 - (view) (download) (annotate) - [select for diffs]
Fri Jul 30 22:50:57 2004 WST (7 years, 9 months ago) by kaipe
Branch: MAIN
Changes since 1.166: +3 -2 lines
Diff to previous 1.166
New generic tools that allow the creation of dataset-dependent questions
as well as the new question type Calculated that uses this generic support.

Revision 1.166 - (view) (download) (annotate) - [select for diffs]
Thu Jul 29 14:15:52 2004 WST (7 years, 9 months ago) by moodler
Branch: MAIN
Changes since 1.165: +2 -2 lines
Diff to previous 1.165
Some cleanups with formatting and so on.

Revision 1.165 - (view) (download) (annotate) - [select for diffs]
Tue Jul 27 21:19:12 2004 WST (7 years, 9 months ago) by moodler
Branch: MAIN
Changes since 1.164: +5 -5 lines
Diff to previous 1.164
Merged fix from stable

Revision 1.152.4.2 - (view) (download) (annotate) - [select for diffs]
Tue Jul 27 17:31:01 2004 WST (7 years, 9 months ago) by moodler
Branch: MOODLE_13_STABLE
Changes since 1.152.4.1: +6 -7 lines
Diff to previous 1.152.4.1 , to branch point 1.152
Fixes a very rare glitch with attempt numbers that I've seen on one
site and could not find the cause for

Revision 1.152.4.1 - (view) (download) (annotate) - [select for diffs]
Tue Jul 27 16:29:33 2004 WST (7 years, 9 months ago) by moodler
Branch: MOODLE_13_STABLE
Changes since 1.152: +21 -13 lines
Diff to previous 1.152
Fixed bad regular expression logic in short answer

Revision 1.164 - (view) (download) (annotate) - [select for diffs]
Wed Jul 21 21:01:04 2004 WST (7 years, 9 months ago) by moodler
Branch: MAIN
Changes since 1.163: +497 -1604 lines
Diff to previous 1.163
Quiz refactoring is now merged into the main development code!

I've done some basic testing using existing quizzes trying as
much as I could think of, and it all worked well!

Well done, Henrik!  Great job!

Still, this should be regarded as unstable at least until more
people have had a try.  Please test this thing solidly on new
and old quizzes.

Revision 1.155.2.4 - (view) (download) (annotate) - [select for diffs]
Sat Jul 17 07:10:32 2004 WST (7 years, 10 months ago) by kaipe
Branch: MOODLE_13_QUIZREFACTOR
Changes since 1.155.2.3: +91 -607 lines
Diff to previous 1.155.2.3 , to branch point 1.155 , to next main 1.406
Moved all question type dependency concerning question
editing to their respective questiontypes directories.
In most cases it has only been a matter of moving around some code
but for question type MULTIANSWER (i.e. cloze) some recoding was
made in order to have the question type fit into the same pattern
as all the other question types.

Revision 1.155.2.3 - (view) (download) (annotate) - [select for diffs]
Thu Jul 15 18:57:31 2004 WST (7 years, 10 months ago) by kaipe
Branch: MOODLE_13_QUIZREFACTOR
Changes since 1.155.2.2: +277 -207 lines
Diff to previous 1.155.2.2 , to branch point 1.155
The major refactoring check-in
I have completly reworked attempt.php and review.php and their
framework in order to establish a more generic solution.
The only obvious workaround still in place is for the
question type RANDOM, because it uses two rows in
quiz_responses for what is only one question.
The report 'Regrade attempts' has been reworked the same way.
Still have not done anything about the question editing
but that should not be too difficult.

Revision 1.155.2.2 - (view) (download) (annotate) - [select for diffs]
Thu Jul 8 17:18:12 2004 WST (7 years, 10 months ago) by kaipe
Branch: MOODLE_13_QUIZREFACTOR
Changes since 1.155.2.1: +182 -772 lines
Diff to previous 1.155.2.1 , to branch point 1.155
Refactored the question-type dependent attempt and review functionality.

Except for a few temporary workarounds, attempt.php can now
treat all question types the same way. The reason is a new common
pattern for naming the form inputs in a quiz attempt. All question types
now obey this more comprehensive notation. When there comes up a
chance to refactor the database storage as well it would be very
generic if the response storage could reflect the attempt form precisely
instead of having multiple responses on a single question be stored in
a comma-separated list as it is today...

I have also done some small tweaking and debugging in the way different
question types appear in an attempt or review but that can easily be
retweaked again. One the changes is the use of readonly in the review.

Revision 1.163 - (view) (download) (annotate) - [select for diffs]
Thu Jul 8 15:50:49 2004 WST (7 years, 10 months ago) by moodler
Branch: MAIN
CVS Tags: MOODLE_14_RESOURCE_PRE
Branch point for: MOODLE_14_RESOURCE
Changes since 1.162: +2 -1 lines
Diff to previous 1.162
Two new features for quizzes!  (Thanks Shane)

 1)  Quizzes can be restricted by subnet

 2)  Quizzes can require a password to be entered before attempts

Revision 1.162 - (view) (download) (annotate) - [select for diffs]
Tue Jul 6 22:28:17 2004 WST (7 years, 10 months ago) by thepurpleblob
Branch: MAIN
Changes since 1.161: +4 -1 lines
Diff to previous 1.161
Added missing handler for exporting Cloze type questions

Revision 1.155.2.1 - (view) (download) (annotate) - [select for diffs]
Sat Jul 3 18:11:28 2004 WST (7 years, 10 months ago) by kaipe
Branch: MOODLE_13_QUIZREFACTOR
Changes since 1.155: +58 -123 lines
Diff to previous 1.155
An early check-in in order to show the direction of this refactoring. The functionality is supposed to remain unchanged except for a correction of a minor bug in the function quiz_get_attempt_responses. The bug could sometimes have caused RANDOM questions to corrupt SHORTANSWER and NUMERICAL responses containing comma (,)

Revision 1.161 - (view) (download) (annotate) - [select for diffs]
Wed Jun 30 20:39:22 2004 WST (7 years, 10 months ago) by thepurpleblob
Branch: MAIN
Changes since 1.160: +9 -2 lines
Diff to previous 1.160
fixed bug #1556 - implode could be called on non-array data

Revision 1.160 - (view) (download) (annotate) - [select for diffs]
Wed Jun 30 18:11:21 2004 WST (7 years, 10 months ago) by thepurpleblob
Branch: MAIN
Changes since 1.159: +27 -2 lines
Diff to previous 1.159
More question types added to support quiz exports

Revision 1.159 - (view) (download) (annotate) - [select for diffs]
Wed Jun 23 17:33:47 2004 WST (7 years, 10 months ago) by thepurpleblob
Branch: MAIN
Changes since 1.158: +7 -3 lines
Diff to previous 1.158
Fixed mistake in category selection - now correctly shows selected category

Revision 1.158 - (view) (download) (annotate) - [select for diffs]
Wed Jun 23 04:44:59 2004 WST (7 years, 10 months ago) by julmis
Branch: MAIN
Changes since 1.157: +25 -19 lines
Diff to previous 1.157
Updates to quiztimer
- mark question result to zero if time limit is exceeded

Revision 1.157 - (view) (download) (annotate) - [select for diffs]
Tue Jun 22 19:02:37 2004 WST (7 years, 10 months ago) by thepurpleblob
Branch: MAIN
Changes since 1.156: +33 -22 lines
Diff to previous 1.156
Editing and adding question controls are now disabled where the user does
not have editing rights. Applies to published categories.

Revision 1.156 - (view) (download) (annotate) - [select for diffs]
Sun Jun 20 18:57:27 2004 WST (7 years, 10 months ago) by julmis
Branch: MAIN
Changes since 1.155: +13 -2 lines
Diff to previous 1.155
Fixes for quiztimer.
- Lets make cheating more complicated, more javascript based.
- Mark attempt to zero if time limit is exceeded over 60 seconds

Revision 1.155 - (view) (download) (annotate) - [select for diffs]
Fri Jun 18 20:59:06 2004 WST (7 years, 10 months ago) by thepurpleblob
Branch: MAIN
CVS Tags: MOODLE_13_QUIZREFACTOR_PRE
Branch point for: MOODLE_13_QUIZREFACTOR
Changes since 1.154: +21 -1 lines
Diff to previous 1.154
Added functions to only display categories that the user is actually
allowed to edit. Used in question edit screens

Revision 1.154 - (view) (download) (annotate) - [select for diffs]
Fri Jun 18 01:29:07 2004 WST (7 years, 11 months ago) by thepurpleblob
Branch: MAIN
Changes since 1.153: +151 -1 lines
Diff to previous 1.153
Added function to return category name with course shortname apended
Added functions to read a complete quiz category structure into object
    for development of export functionality - working but partial question
    types at the moment.

Revision 1.153 - (view) (download) (annotate) - [select for diffs]
Thu Jun 3 02:03:05 2004 WST (7 years, 11 months ago) by julmis
Branch: MAIN
Changes since 1.152: +122 -108 lines
Diff to previous 1.152
QuizTimer modifications added plus necessary files along.

Revision 1.152 - (view) (download) (annotate) - [select for diffs]
Sun May 23 18:25:46 2004 WST (7 years, 11 months ago) by moodler
Branch: MAIN
CVS Tags: MOODLE_13, MOODLE_131, Moodle_13_pre14merge
Branch point for: MOODLE_13_STABLE, Moodle_14_dev
Changes since 1.151: +28 -46 lines
Diff to previous 1.151
Simpler way to update events for a quiz

Revision 1.151 - (view) (download) (annotate) - [select for diffs]
Wed May 19 10:53:03 2004 WST (7 years, 11 months ago) by moodler
Branch: MAIN
Changes since 1.150: +2 -1 lines
Diff to previous 1.150
Fix for BUg 320 from Bernard Boucher

Revision 1.150 - (view) (download) (annotate) - [select for diffs]
Tue May 18 01:04:00 2004 WST (8 years ago) by moodler
Branch: MAIN
Changes since 1.149: +111 -24 lines
Diff to previous 1.149
Quizzes with long periods (longer than 5 days) are now handled
in the calendar as two separate events ... one for open and one for close

bug 1402

Revision 1.149 - (view) (download) (annotate) - [select for diffs]
Sun May 16 18:20:26 2004 WST (8 years ago) by moodler
Branch: MAIN
Changes since 1.148: +9 -1 lines
Diff to previous 1.148
Some cleaning up of the navigation bars in quizzes

Revision 1.148 - (view) (download) (annotate) - [select for diffs]
Sun May 16 11:14:03 2004 WST (8 years ago) by moodler
Branch: MAIN
Changes since 1.147: +15 -6 lines
Diff to previous 1.147
Use overlib feedback on cloze-style questions

Revision 1.147 - (view) (download) (annotate) - [select for diffs]
Fri May 14 22:36:31 2004 WST (8 years ago) by moodler
Branch: MAIN
Changes since 1.146: +42 -8 lines
Diff to previous 1.146
Fixes to prevent users from creating bad quiz questions with not
enough answers in them.

Thanks to Shane Elliott (Ikawhero)

Revision 1.146 - (view) (download) (annotate) - [select for diffs]
Wed May 5 15:07:56 2004 WST (8 years ago) by gustav_delius
Branch: MAIN
CVS Tags: Moodle_13_Beta
Changes since 1.145: +4 -2 lines
Diff to previous 1.145
Events associated to hidden activities are now invisible in calendar, using new field 'visible' in table 'event' which is updated each time a course module is hidden or unhidden.

Revision 1.145 - (view) (download) (annotate) - [select for diffs]
Wed Apr 28 10:56:40 2004 WST (8 years ago) by moodler
Branch: MAIN
Changes since 1.144: +80 -3 lines
Diff to previous 1.144
Support for events.

Ouch - I thought I'd checked this in days ago

Revision 1.144 - (view) (download) (annotate) - [select for diffs]
Sun Apr 25 17:16:19 2004 WST (8 years ago) by stronk7
Branch: MAIN
Changes since 1.143: +3 -3 lines
Diff to previous 1.143
As showing/hiding "Save my answers" button was based in empty($results),
moved $results->attemptbuildsonthelast to $attemptbuildsonthelast.
This was introduced in my latest CVS version, trying to take out
some notices...solved now.

Revision 1.143 - (view) (download) (annotate) - [select for diffs]
Sun Apr 25 16:43:42 2004 WST (8 years ago) by stronk7
Branch: MAIN
Changes since 1.142: +4 -1 lines
Diff to previous 1.142
Take our some notices...

Revision 1.142 - (view) (download) (annotate) - [select for diffs]
Thu Apr 8 07:38:48 2004 WST (8 years, 1 month ago) by stronk7
Branch: MAIN
CVS Tags: PREBLOCKS
Changes since 1.141: +4 -4 lines
Diff to previous 1.141
Solved two small typos preventing quiz being deleted properly in
quiz_delete_instance() function:
public----------------------------------->publish
get_record("quiz_attempts")------------->get_records("quiz_attempts")

Revision 1.141 - (view) (download) (annotate) - [select for diffs]
Fri Mar 19 22:51:29 2004 WST (8 years, 1 month ago) by moodler
Branch: MAIN
CVS Tags: Moodle_12, Moodle_121
Changes since 1.140: +79 -67 lines
Diff to previous 1.140
Multianswer cloze questions now show feedback (you need to hover
your mouse over the answers)

Revision 1.140 - (view) (download) (annotate) - [select for diffs]
Mon Mar 15 22:41:19 2004 WST (8 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.139: +2 -1 lines
Diff to previous 1.139
Handle '+' signs in short answers

Revision 1.139 - (view) (download) (annotate) - [select for diffs]
Fri Mar 12 21:03:51 2004 WST (8 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.138: +5 -4 lines
Diff to previous 1.138
In shortanswers you can now use \* (ie slash asterisk) to mean a real asterisk

Normally the asterisk is a wildcard

Revision 1.138 - (view) (download) (annotate) - [select for diffs]
Wed Mar 10 11:45:44 2004 WST (8 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.137: +10 -10 lines
Diff to previous 1.137
More rubustness

Revision 1.137 - (view) (download) (annotate) - [select for diffs]
Tue Mar 9 13:56:43 2004 WST (8 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.136: +2 -2 lines
Diff to previous 1.136
SHortanswer field just a bit bigger

Revision 1.136 - (view) (download) (annotate) - [select for diffs]
Tue Mar 9 13:51:16 2004 WST (8 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.135: +3 -3 lines
Diff to previous 1.135
Fix case of printing shortanswers with quotes in them

Revision 1.135 - (view) (download) (annotate) - [select for diffs]
Sat Mar 6 17:51:52 2004 WST (8 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.134: +2 -2 lines
Diff to previous 1.134
Slightly bigger input box for short answers

http://moodle.org/mod/forum/discuss.php?d=5909

Revision 1.134 - (view) (download) (annotate) - [select for diffs]
Sat Feb 21 05:47:55 2004 WST (8 years, 2 months ago) by selliott
Branch: MAIN
Changes since 1.133: +24 -20 lines
Diff to previous 1.133
Added logic in function quiz_get_recent_mod_activity for groups

Revision 1.133 - (view) (download) (annotate) - [select for diffs]
Fri Feb 20 02:14:19 2004 WST (8 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.132: +3 -3 lines
Diff to previous 1.132
Format answers in multiple choice questions

Revision 1.132 - (view) (download) (annotate) - [select for diffs]
Thu Feb 19 15:53:09 2004 WST (8 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.131: +20 -6 lines
Diff to previous 1.131
Don't show editing icons when questions can't be edited!

Revision 1.131 - (view) (download) (annotate) - [select for diffs]
Wed Feb 18 11:07:50 2004 WST (8 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.130: +2 -2 lines
Diff to previous 1.130
Format quiz feedback

Revision 1.130 - (view) (download) (annotate) - [select for diffs]
Tue Feb 17 20:14:02 2004 WST (8 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.129: +2 -2 lines
Diff to previous 1.129
FIxed the logging of attempts so that clicking on the link in the log
actually shows you that attempt, rather than opening a new one!

Revision 1.129 - (view) (download) (annotate) - [select for diffs]
Sun Feb 15 14:26:55 2004 WST (8 years, 3 months ago) by selliott
Branch: MAIN
Changes since 1.128: +70 -36 lines
Diff to previous 1.128
Deleted quiz_print_recent_instance_activity and quiz_get_recent_quizzes (only used in course/recent.php)
Added quiz_print_recent_mod_activity and quiz_get_recent_mod_activity (for course/recent.php)

Revision 1.128 - (view) (download) (annotate) - [select for diffs]
Fri Feb 13 22:01:26 2004 WST (8 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.127: +8 -8 lines
Diff to previous 1.127
Quiz questions now have proper formatting controls.

Any format can be used.  This fixes a number of problems at once,
but the latest one is Bug #1047

Revision 1.127 - (view) (download) (annotate) - [select for diffs]
Thu Feb 12 11:41:16 2004 WST (8 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.126: +10 -10 lines
Diff to previous 1.126
Use format_text on question texts so we get caching, filters etc

Revision 1.126 - (view) (download) (annotate) - [select for diffs]
Fri Feb 6 04:40:59 2004 WST (8 years, 3 months ago) by selliott
Branch: MAIN
Changes since 1.125: +12 -7 lines
Diff to previous 1.125
Added user parameter to print_recent_instance_activity and get_recent_quizzes (for course/recent.php)

Revision 1.125 - (view) (download) (annotate) - [select for diffs]
Wed Feb 4 23:12:06 2004 WST (8 years, 3 months ago) by selliott
Branch: MAIN
Changes since 1.124: +59 -1 lines
Diff to previous 1.124
Added functions quiz_get_recent_quizzes and quiz_print_recent_instance_activity for course/recent.php (a recent activities page).

Revision 1.124 - (view) (download) (annotate) - [select for diffs]
Mon Jan 26 04:34:41 2004 WST (8 years, 3 months ago) by gustav_delius
Branch: MAIN
Changes since 1.123: +2 -2 lines
Diff to previous 1.123
replaced incorrectly closed html tags, see bug 365

Revision 1.123 - (view) (download) (annotate) - [select for diffs]
Thu Jan 22 01:13:55 2004 WST (8 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.122: +3 -3 lines
Diff to previous 1.122
For now just avoid public categories.

It would be nice if instead a check was made to make sure that the
category wasn't being used by other courses, then even public
categories could be deleted.

Revision 1.122 - (view) (download) (annotate) - [select for diffs]
Thu Jan 22 00:44:22 2004 WST (8 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.121: +30 -1 lines
Diff to previous 1.121
New function quiz_delete_course() which deletes all the leftover stuff
while a course is being deleted

Revision 1.121 - (view) (download) (annotate) - [select for diffs]
Thu Jan 22 00:04:55 2004 WST (8 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.120: +5 -5 lines
Diff to previous 1.120
Only list categories that belong to real courses

Revision 1.120 - (view) (download) (annotate) - [select for diffs]
Wed Jan 21 11:22:16 2004 WST (8 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.119: +3 -3 lines
Diff to previous 1.119
Slight fix for null case (Add Choose item on popup menus)

Revision 1.119 - (view) (download) (annotate) - [select for diffs]
Sun Jan 18 14:17:02 2004 WST (8 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.118: +2 -2 lines
Diff to previous 1.118
Some fixes for displaying empty grades in quizzes

suggested by Marilyn Fleming http://moodle.org/mod/forum/discuss.php?d=4636

Revision 1.118 - (view) (download) (annotate) - [select for diffs]
Thu Jan 15 23:26:34 2004 WST (8 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.117: +22 -21 lines
Diff to previous 1.117
Menus on quiz editing no longer need the submit buttons

Revision 1.117 - (view) (download) (annotate) - [select for diffs]
Sat Jan 10 15:39:19 2004 WST (8 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.116: +2 -2 lines
Diff to previous 1.116
Increased QUIZ_MAX_NUMBER_ANSWERS to 10, and actually made it apply to everythin

Revision 1.116 - (view) (download) (annotate) - [select for diffs]
Thu Jan 1 23:01:29 2004 WST (8 years, 4 months ago) by kaipe
Branch: MAIN
Changes since 1.115: +13 -12 lines
Diff to previous 1.115
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.

Revision 1.115 - (view) (download) (annotate) - [select for diffs]
Thu Jan 1 03:22:38 2004 WST (8 years, 4 months ago) by kaipe
Branch: MAIN
Changes since 1.114: +2 -2 lines
Diff to previous 1.114
Fixed a single/double quote issue (again)

Revision 1.114 - (view) (download) (annotate) - [select for diffs]
Tue Dec 30 15:28:43 2003 WST (8 years, 4 months ago) by moodler
Branch: MAIN
CVS Tags: PREGROUPS
Changes since 1.113: +43 -43 lines
Diff to previous 1.113
Fixed some single/double quote issues

Revision 1.113 - (view) (download) (annotate) - [select for diffs]
Tue Dec 30 15:04:04 2003 WST (8 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.112: +171 -168 lines
Diff to previous 1.112
Bodgy HTML converted to nice clean XHTML fragments.

Thanks to Jonathan Moore and all his work!

Revision 1.112 - (view) (download) (annotate) - [select for diffs]
Mon Dec 29 17:40:23 2003 WST (8 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.111: +13 -4 lines
Diff to previous 1.111
Some preliminary code to allow wildcards in short answers.
Based on code sent by Thomas Robb

Revision 1.111 - (view) (download) (annotate) - [select for diffs]
Fri Dec 12 15:35:53 2003 WST (8 years, 5 months ago) by moodler
Branch: MAIN
Changes since 1.110: +1 -9 lines
Diff to previous 1.110
Reworking of the plug-in format for import/export files.

Each format is now in it's own subdirectory, which allows the
format to have as many files as it likes.  The formats are now
detected automatically (no need to edit lib.php anymore) and
the parent class is now in mod/quiz/format.php

Lastly, I added Paul Shew's new GIFT format.

Revision 1.110 - (view) (download) (annotate) - [select for diffs]
Thu Dec 11 04:03:03 2003 WST (8 years, 5 months ago) by kaipe
Branch: MAIN
Changes since 1.109: +25 -15 lines
Diff to previous 1.109
The Quizzes page is given an "Edit questions" button that links to a possibility to edit questions without opening a quiz.

Revision 1.109 - (view) (download) (annotate) - [select for diffs]
Mon Dec 1 14:37:14 2003 WST (8 years, 5 months ago) by moodler
Branch: MAIN
Changes since 1.108: +2 -1 lines
Diff to previous 1.108
New format called "Aiken format" by Thomas Robb (and Art Lader)
to allow import of questions like this:

Every seriously injured person is likely to go into
A) shock.
B) infection.
C) hemorrhage.
D) respiratory pain.
ANSWER: A

Revision 1.108 - (view) (download) (annotate) - [select for diffs]
Fri Nov 21 03:38:10 2003 WST (8 years, 5 months ago) by kaipe
Branch: MAIN
Changes since 1.107: +12 -7 lines
Diff to previous 1.107
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.

Revision 1.107 - (view) (download) (annotate) - [select for diffs]
Sat Nov 15 11:31:37 2003 WST (8 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.106: +8 -2 lines
Diff to previous 1.106
Don't have the Javascript dialog on submitting an attempt if the quiz
doesn't have a grade.

Revision 1.106 - (view) (download) (annotate) - [select for diffs]
Mon Nov 3 05:36:25 2003 WST (8 years, 6 months ago) by kaipe
Branch: MAIN
Changes since 1.105: +30 -31 lines
Diff to previous 1.105
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...

Revision 1.105 - (view) (download) (annotate) - [select for diffs]
Sat Nov 1 05:27:43 2003 WST (8 years, 6 months ago) by kaipe
Branch: MAIN
Changes since 1.104: +23 -5 lines
Diff to previous 1.104
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.

Revision 1.104 - (view) (download) (annotate) - [select for diffs]
Thu Oct 23 23:40:17 2003 WST (8 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.103: +3 -2 lines
Diff to previous 1.103
Fix bug in NUMERICAL questions where feedback was only shown if the
question was correct

Revision 1.103 - (view) (download) (annotate) - [select for diffs]
Wed Oct 15 16:53:51 2003 WST (8 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.102: +3 -2 lines
Diff to previous 1.102
Added new import format - Course Test Manager - from Russell Jungwirth.

All I've done is clean up the source code - I've not tested it at all.

Revision 1.102 - (view) (download) (annotate) - [select for diffs]
Sun Sep 28 22:57:16 2003 WST (8 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.101: +13 -17 lines
Diff to previous 1.101
MOved quiz_get_participants from the bottom to the standard functions area

Revision 1.101 - (view) (download) (annotate) - [select for diffs]
Tue Sep 23 00:03:30 2003 WST (8 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.100: +10 -2 lines
Diff to previous 1.100
Fixed a NASTY little bug that sometimes occurred when
re-grading quizzes with random questions in them.

(everyone got set to zero)

Revision 1.100 - (view) (download) (annotate) - [select for diffs]
Wed Sep 10 16:22:16 2003 WST (8 years, 8 months ago) by moodler
Branch: MAIN
CVS Tags: Moodle_111
Changes since 1.99: +9 -7 lines
Diff to previous 1.99
All grades are hidden now when zero grade is chosen ... even the marks.

This mode is only really useful when feedback is turned on.

Revision 1.99 - (view) (download) (annotate) - [select for diffs]
Wed Sep 10 13:02:39 2003 WST (8 years, 8 months ago) by moodler
Branch: MAIN
Changes since 1.98: +6 -1 lines
Diff to previous 1.98
Quiz grades can be set to zero.

If so, then grades are not shown to students, nor is a column added to
the gradebook (although they are still stored and calculated internally)

Revision 1.98 - (view) (download) (annotate) - [select for diffs]
Mon Sep 8 05:56:46 2003 WST (8 years, 8 months ago) by stronk7
Branch: MAIN
Changes since 1.97: +18 -1 lines
Diff to previous 1.97
Included quiz_get_participants() function.

Revision 1.97 - (view) (download) (annotate) - [select for diffs]
Fri Aug 29 01:07:24 2003 WST (8 years, 8 months ago) by moodler
Branch: MAIN
CVS Tags: Moodle_11
Changes since 1.96: +2 -1 lines
Diff to previous 1.96
Default quiz category must have a stamp

Revision 1.96 - (view) (download) (annotate) - [select for diffs]
Mon Aug 18 15:45:03 2003 WST (8 years, 9 months ago) by moodler
Branch: MAIN
CVS Tags: Moodle_11b
Changes since 1.95: +3 -2 lines
Diff to previous 1.95
Bug fix: On building attempts after the first one, display question images

Revision 1.95 - (view) (download) (annotate) - [select for diffs]
Sun Aug 10 20:09:49 2003 WST (8 years, 9 months ago) by kaipe
Branch: MAIN
Changes since 1.94: +5 -5 lines
Diff to previous 1.94
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.

Revision 1.94 - (view) (download) (annotate) - [select for diffs]
Mon Aug 4 07:00:44 2003 WST (8 years, 9 months ago) by kaipe
Branch: MAIN
Changes since 1.93: +5 -5 lines
Diff to previous 1.93
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.

As always, I can not commit lang/en/quiz.php.
---
As I was using the function quiz_get_attempt_responses I had it refactored removing the obsolete argument $quiz. I also changed the call from review.php

Revision 1.93 - (view) (download) (annotate) - [select for diffs]
Mon Aug 4 05:39:32 2003 WST (8 years, 9 months ago) by kaipe
Branch: MAIN
Changes since 1.92: +29 -6 lines
Diff to previous 1.92
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.

As I don't have the karma needed for updating in lang/en/, the message does not yet look quite as I described it above.

Revision 1.92 - (view) (download) (annotate) - [select for diffs]
Mon Aug 4 04:02:43 2003 WST (8 years, 9 months ago) by kaipe
Branch: MAIN
Changes since 1.91: +22 -11 lines
Diff to previous 1.91
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!

Revision 1.91 - (view) (download) (annotate) - [select for diffs]
Fri Aug 1 16:37:11 2003 WST (8 years, 9 months ago) by kaipe
Branch: MAIN
Changes since 1.90: +330 -8 lines
Diff to previous 1.90
New question type - multianswer

Revision 1.90 - (view) (download) (annotate) - [select for diffs]
Tue Jul 29 17:11:06 2003 WST (8 years, 9 months ago) by kaipe
Branch: MAIN
Changes since 1.89: +178 -183 lines
Diff to previous 1.89
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.

Revision 1.89 - (view) (download) (annotate) - [select for diffs]
Fri Jul 25 00:48:10 2003 WST (8 years, 9 months ago) by moodler
Branch: MAIN
Changes since 1.88: +37 -3 lines
Diff to previous 1.88
Further changes to tidy up reports

Revision 1.88 - (view) (download) (annotate) - [select for diffs]
Thu Jul 24 13:18:00 2003 WST (8 years, 9 months ago) by moodler
Branch: MAIN
Changes since 1.87: +18 -3 lines
Diff to previous 1.87
New modular plugin structure for quiz reports.

The code for reviewing an existing attempt is now separate
in review.php and now has a log entry of it's own.

The overview and regrade reports are now in separate subdirectories
under the "report" directory.  Each has a primary "report.php" file
which implements the report as a class.

These existing reports are very simple, but now more complex ones
can easily be written.  (I am about to do one).

Revision 1.87 - (view) (download) (annotate) - [select for diffs]
Tue Jul 22 01:25:59 2003 WST (8 years, 9 months ago) by stronk7
Branch: MAIN
Changes since 1.86: +3 -1 lines
Diff to previous 1.86
Reviewing an attempt now works fine with NUMERICAL and SHORTANSWERS
containing the "," character. Bug #561 closed.

Revision 1.86 - (view) (download) (annotate) - [select for diffs]
Sun Jul 13 00:24:29 2003 WST (8 years, 10 months ago) by moodler
Branch: MAIN
Changes since 1.85: +15 -7 lines
Diff to previous 1.85
Print images correctly on questions included from categories in
other courses.

Revision 1.85 - (view) (download) (annotate) - [select for diffs]
Thu Jul 10 22:09:43 2003 WST (8 years, 10 months ago) by moodler
Branch: MAIN
Changes since 1.84: +5 -4 lines
Diff to previous 1.84
Added a question field to numerical table for completeness

Revision 1.84 - (view) (download) (annotate) - [select for diffs]
Thu Jul 10 21:25:07 2003 WST (8 years, 10 months ago) by moodler
Branch: MAIN
Changes since 1.83: +120 -23 lines
Diff to previous 1.83
New question type: Numerical questions.

Mostly coded by Henrik Kaipe - I changed a few things on the way in.

Revision 1.83 - (view) (download) (annotate) - [select for diffs]
Sun Jul 6 12:19:11 2003 WST (8 years, 10 months ago) by moodler
Branch: MAIN
Changes since 1.82: +9 -4 lines
Diff to previous 1.82
Don't allow grades to ever be set for description questions

Revision 1.82 - (view) (download) (annotate) - [select for diffs]
Sun Jul 6 12:08:11 2003 WST (8 years, 10 months ago) by moodler
Branch: MAIN
Changes since 1.81: +5 -2 lines
Diff to previous 1.81
Description questions should not be selected randomly

Revision 1.81 - (view) (download) (annotate) - [select for diffs]
Sun Jul 6 12:00:04 2003 WST (8 years, 10 months ago) by moodler
Branch: MAIN
Changes since 1.80: +30 -7 lines
Diff to previous 1.80
New question type called "Description".  All it does is print some
text and/or an image, without requiring an answer.  Can be used
to provide text for a following group of questions, or to insert
a joke in the quiz etc ...

This code is based on code sent in by Ursula Raab.  Thanks!

See: http://moodle.org/mod/forum/discuss.php?d=508

Revision 1.80 - (view) (download) (annotate) - [select for diffs]
Thu Jul 3 01:30:42 2003 WST (8 years, 10 months ago) by stronk7
Branch: MAIN
Changes since 1.79: +4 -4 lines
Diff to previous 1.79
Excluded form quiz_choose_random_questions the quiz
questions to avoid duplicates in quiz. Bug #544. Closed.

Revision 1.79 - (view) (download) (annotate) - [select for diffs]
Fri May 23 23:20:41 2003 WST (8 years, 11 months ago) by moodler
Branch: MAIN
CVS Tags: Moodle_109
Changes since 1.78: +13 -9 lines
Diff to previous 1.78
A little more guidance on the quiz page.

Revision 1.78 - (view) (download) (annotate) - [select for diffs]
Sat May 17 11:02:59 2003 WST (9 years ago) by moodler
Branch: MAIN
Changes since 1.77: +5 -5 lines
Diff to previous 1.77
More on Bug 427_  on second thoughts it's better this way, now at least
the true/false entries get updated every time the question is updated.

Revision 1.77 - (view) (download) (annotate) - [select for diffs]
Sat May 17 10:54:20 2003 WST (9 years ago) by moodler
Branch: MAIN
Changes since 1.76: +5 -3 lines
Diff to previous 1.76
This should fix the non-translatability of true/false questions bug 427

Revision 1.76 - (view) (download) (annotate) - [select for diffs]
Fri May 16 01:01:35 2003 WST (9 years ago) by moodler
Branch: MAIN
CVS Tags: Moodle_109_B1
Changes since 1.75: +2 -2 lines
Diff to previous 1.75
FIxed bug where questions weren't being shown in reviews.

Revision 1.75 - (view) (download) (annotate) - [select for diffs]
Thu May 15 00:52:25 2003 WST (9 years ago) by moodler
Branch: MAIN
Changes since 1.74: +5 -3 lines
Diff to previous 1.74
Better code to deal with shuffleorder.

Now feedback is always in the same order as the quiz, and
reports are always in the natural order.

Revision 1.74 - (view) (download) (annotate) - [select for diffs]
Wed May 14 23:23:54 2003 WST (9 years ago) by moodler
Branch: MAIN
Changes since 1.73: +3 -1 lines
Diff to previous 1.73
Fix the order of questions when shuffle is NOT being used.

See bug 423 for details: http://moodle.org/bugs/bug.php?op=show&bugid=423

Revision 1.73 - (view) (download) (annotate) - [select for diffs]
Fri May 2 23:31:23 2003 WST (9 years ago) by moodler
Branch: MAIN
Changes since 1.72: +5 -4 lines
Diff to previous 1.72
Tidied up the quiz imports a bit, and added AON as a format choice

Also added Scott Elliott's Blackboard module!

Revision 1.72 - (view) (download) (annotate) - [select for diffs]
Mon Apr 28 14:36:14 2003 WST (9 years ago) by paca70
Branch: MAIN
Changes since 1.71: +6 -2 lines
Diff to previous 1.71
Don't give fatal error when questions were not found.

Revision 1.71 - (view) (download) (annotate) - [select for diffs]
Sat Apr 26 23:08:33 2003 WST (9 years ago) by moodler
Branch: MAIN
Changes since 1.70: +1 -14 lines
Diff to previous 1.70
Trying a different tack for recent_activity since the old way was
still producing too much data and overflowing PHP memory on busier
sites (eg moodle.org).

Now, there are more database queries, which is unfortunate, but the
data is much more specific, and no sorting needs to be done, so
this is a performance boost.

I don't know how these will cancel out ... my guess is that very
small sites may be very slightly slower on the course page, but
that large sites will be much faster.

Let's see.

Revision 1.70 - (view) (download) (annotate) - [select for diffs]
Sat Apr 26 20:17:30 2003 WST (9 years ago) by moodler
Branch: MAIN
Changes since 1.69: +2 -2 lines
Diff to previous 1.69
Cleaned up definition of constant COURSE_* values in course/lib.php

Moved COURSE_TEACHER_COLOR out to style sheets where it belongs (.teacheronly)

Added some efficiency when printing recent activity

 - don't print more than one weeks worth of updates
  - don't keep re-parsing logs once they've been used

Revision 1.69 - (view) (download) (annotate) - [select for diffs]
Fri Apr 25 01:13:52 2003 WST (9 years ago) by moodler
Branch: MAIN
Changes since 1.68: +6 -2 lines
Diff to previous 1.68
More robust variable checking

Revision 1.68 - (view) (download) (annotate) - [select for diffs]
Wed Apr 16 21:48:16 2003 WST (9 years, 1 month ago) by moodler
Branch: MAIN
CVS Tags: dev-2003041600
Changes since 1.67: +26 -15 lines
Diff to previous 1.67
Er, similar to the last few changes but this way seems to actually work.  :-)

Need sleep ...

Revision 1.67 - (view) (download) (annotate) - [select for diffs]
Wed Apr 16 21:25:03 2003 WST (9 years, 1 month ago) by moodler
Branch: MAIN
Changes since 1.66: +3 -2 lines
Diff to previous 1.66
Improvements for shuffleorder in collections of random questions

Revision 1.66 - (view) (download) (annotate) - [select for diffs]
Wed Apr 16 21:10:48 2003 WST (9 years, 1 month ago) by moodler
Branch: MAIN
Changes since 1.65: +25 -10 lines
Diff to previous 1.65
After doing a quiz that has been shuffled, present the feedback in the
same order.  Note that shuffled ANSWERS may still appear reshuffled.

When viewing reports, all shuffling is switched off so that quizzes
always appear in the default order (for easier comparison).

Also a few tweaks, robustness etc

Revision 1.65 - (view) (download) (annotate) - [select for diffs]
Tue Apr 15 22:43:29 2003 WST (9 years, 1 month ago) by moodler
Branch: MAIN
Changes since 1.64: +175 -82 lines
Diff to previous 1.64
Fixes for bug 268 - Changing answers of questions can lose responses for
existing quizzes with those questions.

When updating a question it now checks for existing answers and updates
those instead of making new ones.

Revision 1.64 - (view) (download) (annotate) - [select for diffs]
Mon Apr 14 21:52:59 2003 WST (9 years, 1 month ago) by moodler
Branch: MAIN
Changes since 1.63: +5 -1 lines
Diff to previous 1.63
Fix for off-by-one grade error when 'Save Grades' had not been used

Revision 1.63 - (view) (download) (annotate) - [select for diffs]
Fri Apr 11 22:44:11 2003 WST (9 years, 1 month ago) by moodler
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62
Minor fixes

Revision 1.62 - (view) (download) (annotate) - [select for diffs]
Fri Apr 11 01:55:53 2003 WST (9 years, 1 month ago) by moodler
Branch: MAIN
Changes since 1.61: +8 -1 lines
Diff to previous 1.61
New "create multiple questions" wizard.

Improvements to the importing routine for AON

Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Thu Apr 10 21:11:34 2003 WST (9 years, 1 month ago) by moodler
Branch: MAIN
Changes since 1.60: +3 -1 lines
Diff to previous 1.60
Minor robustness fix

Revision 1.60 - (view) (download) (annotate) - [select for diffs]
Wed Apr 9 21:57:06 2003 WST (9 years, 1 month ago) by moodler
Branch: MAIN
Changes since 1.59: +16 -6 lines
Diff to previous 1.59
New quiz switches to

  - shuffle questions order
  - shuffle answers order

Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Wed Apr 9 15:23:42 2003 WST (9 years, 1 month ago) by moodler
Branch: MAIN
Changes since 1.58: +29 -15 lines
Diff to previous 1.58
Slightly more efficient database access.

Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Wed Apr 9 14:32:51 2003 WST (9 years, 1 month ago) by moodler
Branch: MAIN
Changes since 1.57: +222 -91 lines
Diff to previous 1.57
First implementation of completely random questions.

When you add a random question to a quiz, then a question
is chosen randomly from the same category.

Questions are not repeated in a particular quiz attempt.

This still needs more testing, but it's looking OK so far.

Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Mon Mar 31 00:46:48 2003 WST (9 years, 1 month ago) by moodler
Branch: MAIN
Changes since 1.56: +146 -24 lines
Diff to previous 1.56
First cut at adding new "fixed" Match question type, which is manually
created.  Works OK after limited testing.

I've also renamed some strings to do with "Random Match", so that this
question type is now called "Random Short-Answer Match".

Later there will be a new 'Random Match' which randomly selects one of the
existing "Match" questions.

Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Thu Mar 20 15:28:52 2003 WST (9 years, 1 month ago) by moodler
Branch: MAIN
Changes since 1.55: +4 -3 lines
Diff to previous 1.55
Changes to make regrading work properly if the quiz has changed

and also an exptended timelimit for when regrading is REALLLLY slow
fue to some other unknown reason (as yet)

Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Tue Mar 4 01:43:07 2003 WST (9 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.54: +1 -3 lines
Diff to previous 1.54
Questions now have a defaultgrade column (which defaults to 1)
... this grade is used as the default grade when adding questions
to a quiz.

At the moment it's just so that some imported questions can have
different defaults, but a field should be added to all question
editing pages.

Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Tue Mar 4 01:05:35 2003 WST (9 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.53: +3 -1 lines
Diff to previous 1.53
Added QUIZ_DEFAULT_SCORE ... later this will be a quiz option

Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Sat Mar 1 13:11:44 2003 WST (9 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52
Sort question list by question type

Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Mon Feb 24 18:37:56 2003 WST (9 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.51: +164 -12 lines
Diff to previous 1.51
First version of code to implement new "Random Matching" type
of questions.  These use 2 or more short answer questions at
random to construct a questions where you have to match
answers to questions.  Only lightly tested so far.

Quiz questions can now be edited with Richtext editor.

Sundry little fixes along the way.

Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Tue Feb 18 02:13:40 2003 WST (9 years, 2 months ago) by moodler
Branch: MAIN
Changes since 1.50: +5 -3 lines
Diff to previous 1.50
Little changes

Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Sun Feb 16 16:03:17 2003 WST (9 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.49: +4 -4 lines
Diff to previous 1.49
Change MC answers to letters a, b, c etc ...

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Sun Feb 16 15:08:57 2003 WST (9 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.48: +174 -2 lines
Diff to previous 1.48
Various quiz changes.  Most importantly is the new framework for importing
quiz questions.   Importing works but is still being tested.

Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Fri Jan 24 15:48:54 2003 WST (9 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47
Robustness fixes

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Mon Jan 20 23:43:09 2003 WST (9 years, 3 months ago) by moodler
Branch: MAIN
Changes since 1.46: +6 -6 lines
Diff to previous 1.46
Remove name on submit button

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Thu Jan 16 23:19:49 2003 WST (9 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45
Strip slashes from short answers before comparing

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Wed Jan 8 17:08:03 2003 WST (9 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44
Some small robustness things, and a new style for quiz feedback text

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Sat Jan 4 00:05:44 2003 WST (9 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43
Make sure grades are always rounded

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Sat Jan 4 00:01:42 2003 WST (9 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.42: +28 -14 lines
Diff to previous 1.42
Changed three fields to avoid SQL problems with PostgreSQL etc:

quiz_truefalse:  true->trueanswer  and false->falseanswer
quiz_questions:  type->qtype

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Wed Jan 1 22:47:10 2003 WST (9 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.41: +24 -16 lines
Diff to previous 1.41
Teachers can choose to allow review of quizzes, which means that students
are allowed to see past quizzes.  This only works once the quiz is completely
closed (to perhaps prevent easy cheating).

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Mon Dec 30 13:10:01 2002 WST (9 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.40: +5 -5 lines
Diff to previous 1.40
Many little fixes and cleanups for robustness

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Mon Dec 30 01:32:32 2002 WST (9 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.39: +3 -1 lines
Diff to previous 1.39
Various little fixes to remove warnings (usually about empty variables)
when error_reporting is turned up to 15 or so ... more of these to come ...

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Mon Dec 23 17:39:25 2002 WST (9 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.38: +10 -10 lines
Diff to previous 1.38
Changes throughout Moodle to remove any reserved words from the
Moodle tables.

ie user -> userid in many tables, plus in user_students
   start -> starttime and end -> endtime

I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.

Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Sun Dec 22 21:55:30 2002 WST (9 years, 4 months ago) by moodler
Branch: MAIN
Changes since 1.37: +108 -80 lines
Diff to previous 1.37
CHanges for new database table commands

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Mon Dec 9 16:20:19 2002 WST (9 years, 5 months ago) by moodler
Branch: MAIN
Changes since 1.36: +4 -2 lines
Diff to previous 1.36
Add a javascript confirmation when submitting a quiz attempt

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Sat Dec 7 16:39:03 2002 WST (9 years, 5 months ago) by moodler
Branch: MAIN
Changes since 1.35: +7 -7 lines
Diff to previous 1.35
Small changes to tables to make them display better with Japanese

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Wed Nov 13 01:20:04 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34
Improvements to formatting on old Netscape browsers

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Sat Oct 26 14:11:43 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.33: +3 -2 lines
Diff to previous 1.33
Fixed small bug that was displaying fractions with too many decimal places
(eg 0.9999 instead of just 1)

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Sat Oct 26 13:17:53 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.32: +2 -1 lines
Diff to previous 1.32
Fixed minor bug after creating default category.

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Wed Oct 23 20:10:38 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.31: +10 -5 lines
Diff to previous 1.31
After saving new question, sanity checks are made to make sure the
fractional grades are correct.

Icons now have tooltips and are also a shortcut to editing page.

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Tue Oct 22 18:38:00 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.30: +3 -2 lines
Diff to previous 1.30
Added help pages to quiz module.

A few little cleanups, such as trim() on shortanswers

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Tue Oct 22 14:52:23 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.29: +5 -5 lines
Diff to previous 1.29
Teacher can now regrade (recalculate grades) of all quiz attempts
(in case the quiz changed somehow)

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Tue Oct 22 12:25:58 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.28: +26 -4 lines
Diff to previous 1.28
Teacher can now view student attempts

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Mon Oct 21 23:00:51 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.27: +3 -4 lines
Diff to previous 1.27
Can now delete questions.  It checks that the question doesn't belong to
any quizzes first (if it's in a published category then it checks all quizzes
on the server).

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Mon Oct 21 21:13:33 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26
Display tweaks

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Mon Oct 21 21:02:14 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25
Round $bestgrade when storing it to avoid insert_record problems

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Mon Oct 21 20:48:13 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.24: +1 -2 lines
Diff to previous 1.24
Bugfix on calculating correct answers for multichoice questions

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Mon Oct 21 20:39:46 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.23: +4 -1 lines
Diff to previous 1.23
Some error checking

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Mon Oct 21 01:41:24 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.22: +6 -6 lines
Diff to previous 1.22
Fixes for display of public categories

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Mon Oct 21 01:15:39 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.21: +40 -13 lines
Diff to previous 1.21
Category editing in quizzes is now supported.  Some other little
cleanups along the way ...

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Sun Oct 20 13:35:25 2002 WST (9 years, 6 months ago) by moodler
Branch: MAIN
Changes since 1.20: +70 -11 lines
Diff to previous 1.20
Now shows correct answers, plus some small bug fixes

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Sat Oct 19 00:05:15 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.19: +36 -7 lines
Diff to previous 1.19
Quiz attempts are now timed.  This is done by starting the quiz_attempts
record upon showing the quiz, and completing it upon submit.

Two new fields in quiz_attempts... should be upgrade friendly.
(Old attempts will show up as being of duration zero)


Also some small fixes here and there.

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Thu Oct 17 16:28:18 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.18: +10 -1 lines
Diff to previous 1.18
Better grade reports

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Thu Oct 17 15:55:54 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.17: +6 -3 lines
Diff to previous 1.17
Now includes maximum grades

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Thu Oct 17 15:23:51 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.16: +6 -1 lines
Diff to previous 1.16
Added new grading functions to work with course/grades.php

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Wed Oct 16 23:52:29 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.15: +5 -5 lines
Diff to previous 1.15
Feedback fixes

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Wed Oct 16 17:35:04 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.14: +77 -12 lines
Diff to previous 1.14
Various fixes and additions.  It now does quiz feedback pretty well
(though it doesn't show correct answers yet).

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Wed Oct 16 01:32:50 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13
Small bugfixes ... (yawn)

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Wed Oct 16 01:13:10 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.12: +3 -1 lines
Diff to previous 1.12
Fixes for grades

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Wed Oct 16 00:45:39 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.11: +9 -8 lines
Diff to previous 1.11
Bit of a clean up of the edit interface ...

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Wed Oct 16 00:22:17 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.10: +10 -1 lines
Diff to previous 1.10
Added timeopen and timeclose (instead of days) and did a few cleanups

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Tue Oct 15 20:54:11 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.9: +56 -26 lines
Diff to previous 1.9
OK, it seems reliable enough now for alpha testing.

If you have existing quizzes, delete them all, then
drop all the quiz tables and delete the quiz line from
the modules table.

Things to do still:

  - add/edit/remove categories
  - display question feedback on submissions ...
  - record the time they started the quiz, as well as the completion.
  - place time limits between attempts
  - add full specification of quiz open time and quiz close time

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Tue Oct 15 18:04:28 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.8: +13 -10 lines
Diff to previous 1.8
Can now create and re-edit all three types of questions.

Still working on grading ...

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Mon Oct 14 23:57:29 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.7: +58 -22 lines
Diff to previous 1.7
Checking in what I got so far .... Not working yet but I'm going to bed.

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Mon Oct 14 20:21:18 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.6: +76 -11 lines
Diff to previous 1.6
Quiz generation is working now.  Just need question and category editors.

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Mon Oct 14 17:07:12 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.5: +190 -1 lines
Diff to previous 1.5
Many new additions - code not quite usable yet, but getting close

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Sun Oct 13 21:51:56 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.4: +11 -1 lines
Diff to previous 1.4
Added a basic report and some clean-ups

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Sun Oct 13 15:17:47 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.3: +297 -61 lines
Diff to previous 1.3
Just to show that something is happening!

At this stage this module:

  - prints quizzes,
  - accepts answers (for multiple attempts) and grades them,
  - stores the grades.

Really, it's usable as long as you don't mind using the database manually. :)

Next up is quiz reports, then I'll tackle quiz creation.

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Mon Oct 7 01:06:54 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.2: +93 -7 lines
Diff to previous 1.2
Further work done.  It currently can print the quiz form (including images!)
but can't mark them yet.  I've been constructing quizzes manually in the
database and it's helping to refine the database structure.  Don't count
on anything stable in the quiz module for a few days yet ...

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Sun Oct 6 11:23:16 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.1: +58 -1 lines
Diff to previous 1.1
Added some more functions

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Fri Oct 4 10:59:04 2002 WST (9 years, 7 months ago) by moodler
Branch: MAIN
Skeleton version of the quiz module.  It won't break an installation,
but it doesn't do anything yet.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.10