Log of /moodle/mod/quiz/lib.php
Parent Directory
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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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 />
- & in URLs
- got the forum module XHTML compliant
Julian Sedding
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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.