Commit graph

1541 commits

Author SHA1 Message Date
mindforge
638267ab81 Updated terminology.html and included the contents of eventtypes.html therein. Therefore eventtypes.html is no longer needed and is removed. 2005-07-06 15:30:13 +00:00
stronk7
bb7e09a453 Latest changes merged from MOODLE_15_STABLE
Moving the MERGED tag for the whole quiz directory
as talked with Gustav...
2005-07-06 09:05:17 +00:00
gustav_delius
39e3c1f1c3 Merged from STABLE 2005-07-06 07:53:17 +00:00
gustav_delius
7d0fdfd794 Moved constants into constants.php so that they can be loaded where needed. 2005-07-06 06:44:18 +00:00
defacer
e623c7f740 Merging from STABLE:
Fix for bug 3616:

layout-table wasn't closed correctly for teachers and guests.
2005-07-06 00:36:36 +00:00
mindforge
2dde39c1c2 Update to attempt.html, minor modifications to databasetables.html 2005-07-05 16:35:09 +00:00
thepurpleblob
5a90586d36 Changed _variabl() functions to _param() functions. 2005-07-05 15:00:34 +00:00
thepurpleblob
218dc7532b data_submitted() replaced with appropriate _param() style functions,
HTML output tidied up and sesskey checking added.
2005-07-05 10:53:22 +00:00
thepurpleblob
c33fe7e79a Changed _variable() to _param throughout. Improved look of output HTML
and added sesskey checking.
2005-07-05 10:35:32 +00:00
gustav_delius
a08e9552fa More steps towards the separation of questions from the quiz module. 2005-07-03 09:53:02 +00:00
gustav_delius
d115d8c736 I have introduced the new field $attempt->uniqueid, see http://mantis.york.ac.uk/moodle/mod/forum/discuss.php?d=852#3380 2005-07-02 18:14:51 +00:00
gustav_delius
ad7e7ba882 Two name changes:
1) in all module-indpendent code the variable $quiz has been renamed to $cmoptions (it holds the options set by the course module which does not necessarily have to be a quiz, it could be a lesson for example).
2) quiz_restore_question_sessions() has the simpler name quiz_get_states
Also got rid of the quizfile.php in favour of file.php
2005-07-02 16:07:05 +00:00
gustav_delius
0d156caaae I have started on the re-organisation to allow other modules to use the questiontypes.
Moved all code that is not specific to the quiz module out of locallib.php into questionlib.php.
The default questiontype class is now defined in quiz/questiontypes/questiontype.php.
See http://mantis.york.ac.uk/moodle/mod/forum/discuss.php?d=852
2005-07-02 11:42:42 +00:00
gustav_delius
be795125dd small changes to documentation 2005-07-02 11:38:42 +00:00
gustav_delius
85f066ab0d fixed the classification of tables into static and runtime in the documentation 2005-07-02 08:51:06 +00:00
gustav_delius
f17d13f5cc Some minor changes to the quiz module documentation. 2005-07-01 21:00:52 +00:00
mindforge
d5711371ce Added attempt.php documentation, unfinished. 2005-06-30 15:41:25 +00:00
michaelpenne
7bae3f486c Found 4 mdl_ in some sql statements. Changed it from mdl_ to $CFG->prefix 2005-06-29 23:56:07 +00:00
mindforge
94c6290094 Database documentation finished. 2005-06-29 09:47:44 +00:00
mindforge
f8e0e46a4d Standardised image namesfor documentation. 2005-06-28 10:01:24 +00:00
mindforge
d5b306eb6a Database documentation update. 2005-06-28 10:00:17 +00:00
gustav_delius
ed460c8e04 I am committing the essay question type contributed by Mark Nielsen, see http://moodle.org/mod/forum/discuss.php?d=25845. 2005-06-26 16:21:11 +00:00
thepurpleblob
e4f7cb77d8 merged from STABLE 2005-06-24 13:18:51 +00:00
gustav_delius
8c95e97fec merged from stable 2005-06-21 06:57:30 +00:00
mjollnir_
f45ea97457 Merged from MOODLE_15_STABLE: Fixing postgres upgrade to match postgres7.sql (bug 3547) 2005-06-19 21:38:39 +00:00
mjollnir_
b71748a86c Merged from MOODLE_15_STABLE: Fixing typo on index for rqp type (bug 3547) 2005-06-19 21:31:26 +00:00
mjollnir_
adf19ef5b4 Merged from MOODLE_15_STABLE: Fixing bug 3502 - 2 postgres problems - one in db creation (my fault) and one in '' instead of 0 for int in sql query 2005-06-15 22:49:02 +00:00
gustav_delius
f3d7f1ca50 merged from stable 2005-06-13 18:42:17 +00:00
gustav_delius
39395fd60b merged from stable 2005-06-12 09:57:13 +00:00
gustav_delius
7dd7925ee4 merged Julian's changes to calculated questions from stable branch 2005-06-12 09:52:21 +00:00
ecastrolt
d8247a98d6 *** empty log message *** 2005-06-06 18:14:12 +00:00
gustav_delius
fc44ee0de8 Merged from stable 2005-06-05 20:51:15 +00:00
gustav_delius
e132d90e02 merged Enrique's correction from stable 2005-06-04 22:14:08 +00:00
ecastrolt
9f701b4c5e *** empty log message *** 2005-06-04 21:14:57 +00:00
defacer
491cc6d617 Merging from STABLE:
Fixing all Tidy warnings in this page. This has to be A Good Thing.
2005-06-04 17:53:36 +00:00
stronk7
92b90adf53 Changed name of the container category a bit and avoided one notice.
Merged from MOODLE_15_STABLE
2005-06-04 15:42:01 +00:00
gustav_delius
7bbe08a267 Merged from stable 2005-06-04 09:58:35 +00:00
defacer
731df4595c Merging from STABLE:
Fix for bug 3316: Now students which have attempted the quiz but have
since been unenrolled from the course are shown with a dimmed style.

Also merging Gustav's nicer error messages (the MERGED tag wasn't up to date)
2005-06-04 00:21:00 +00:00
stronk7
8f999b78dc Bump!
Deletion (or move to site course) of orphan categories
executed in the upgrade process. Now we shouldn't have
such orphans anymore! B-)

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

Important NOTE: In the upgrade code for postgreSQL I've included
                some steps that weren't up to date. They seem to
                standard SQL code but they should be tested
                properly.... hope all works!

Merged from MOODLE_15_STABLE
2005-06-03 12:53:58 +00:00
stronk7
465ce22cf0 Deletion (or move to site course) of orphan categories
executed in the upgrade process. Now we shouldn't have
such orphans anymore! B-)

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

Important NOTE: In the upgrade code for postgreSQL I've included
                some steps that weren't up to date. They seem to
                standard SQL code but they should be tested
                properly.... hope all works!

Merged from MOODLE_15_STABLE
2005-06-03 12:52:22 +00:00
gustav_delius
ebbb178e35 tiny tweaks 2005-06-01 19:02:07 +00:00
mindforge
1732e1a00f Added multianswer explanation. 2005-06-01 13:03:12 +00:00
moodler
5a82dafa75 Merging fixes from MOODLE_15_STABLE 2005-06-01 08:15:21 +00:00
gustav_delius
6851e7cd4a merged fix of bug 3377 2005-06-01 06:44:35 +00:00
mindforge
b27d7b3b6b Documentation about response storage and the beginning of a glossary for quiz specific terminology. 2005-05-31 23:10:18 +00:00
stronk7
9ea6ac5105 Complete refactor of quiz_delete_course()
Now this function works following this:
- Iterate over every quiz category in the course (following parent-child relationships).
- If the category is being used*, move it to site level (under a container category) and
      mark it as published.
- If the category isn't being used, remove** it completely (questions, instances...) and
      re-parent its child categories.
- Feedback is shown in a table detailing all the changes performed.

* One category is being used if it has one question that is being used in any quiz,
  independently of its publish status.
** Removal of categories (and associated questions) has benn improved but, it won't
  be perfect until bug 3366 was solved.

Tested against some large courses with reused questions and multiple levels of
categories. Seems to work but

PLEASE TEST IT AND SEND ANY FEEDBACK TO BUG 2459
(http://moodle.org/bugs/bug.php?op=show&bugid=2459)

Exactly this function is going to be used in the upgrade script to solve
the orphan categories issue and it must work perfectly!

Merged from MOODLE_15_STABLE
2005-05-31 22:35:04 +00:00
stronk7
3686d611d9 Simplify the quizzes_category_used() function.
I was using the $excluded parameter to avoid
loops between categories. A->B->A. Think we can
assume such loops won't exist, so I've deleted
the $excluded use.

Merged from MOODLE_15_STABLE
2005-05-31 16:33:18 +00:00
thepurpleblob
18c89ac630 merged from STABLE 2005-05-31 15:19:00 +00:00
thepurpleblob
3754d9b724 Merged changes from STABLE 2005-05-31 14:22:26 +00:00
thepurpleblob
55631ee73a Merged from STABLE 2005-05-31 13:35:15 +00:00