647 Commits

Author SHA1 Message Date
defacer
c4d588cc24 Added require_once for pagelib.php.
Now deleting courses with these activities in works just fine once more!
2005-02-28 04:23:52 +00:00
defacer
880d86758b Each mod is responsible to deleting its own blocks; what I had in mind for
centralizing this wouldn't work out. Use the flexible page_import_types so that
we don't create one more dependency when writing new code.
2005-02-28 04:18:13 +00:00
defacer
f16bbfd5a8 Add hooks for exporting the page types used by each module. 2005-02-28 03:59:57 +00:00
defacer
6ba37c824a Quiz doesn't attempt to delete blocks placed in deleted quiz view pages anymore;
this is going to be taken care of from course/mod.php.
2005-02-28 03:59:23 +00:00
stronk7
94e765288a Now parent and sortorder is supported at restore too. 2005-02-20 18:02:41 +00:00
stronk7
c98cb6bc57 Now quiz_categories' parent and sortoreder is supported in backup.
A mechanish to detect all the ancestors and to recover orphaned
categories is now running ar backup time to force backups to be consistent.
2005-02-20 17:19:04 +00:00
moodler
0f934cd9e5 Use new advancedsettings help file and title 2005-02-19 14:38:13 +00:00
stronk7
5150c3043a Now questionsperpage is in backup & restore 2005-02-19 01:24:17 +00:00
gustav_delius
ee930c461d made appearance of quiz setup page look like the resource setup pages, see bug 2587. Also added the new variable quiz_questionsperpage properly. 2005-02-18 17:20:06 +00:00
defacer
090cf95ae9 Fix for bug 2584:
All floatval() calls changed to (float) casts.
2005-02-18 14:42:04 +00:00
thepurpleblob
8b8a1caaaa Dumps a question as an IMS QTI Manifest. Can be called from external programs requiring
this data. Submitted by Brian King.
2005-02-17 14:41:05 +00:00
thepurpleblob
06e273a1c3 Brian King's new QTI export capability - needs some testing yet. 2005-02-17 13:39:35 +00:00
thepurpleblob
425d616a1e Smarty templates used for new qti export feature. 2005-02-17 13:37:49 +00:00
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
defacer
ef08e7ad70 Fix a notice if $attemptmark doesn't get set. 2005-02-15 01:39:12 +00:00
stronk7
c6e88f1059 One more use of decimalpoints 2005-02-14 19:57:45 +00:00
stronk7
e37da3a536 Now decimalpoints is used to show grades
(I had to modify quiz_get_best_grade() slighty)
2005-02-14 19:41:52 +00:00
stronk7
f4e56673df Added backup and restore support for decimalpoints 2005-02-14 19:05:00 +00:00
stronk7
ee40f7a720 Added configuration support for decimalpoints 2005-02-14 18:56:53 +00:00
stronk7
72036f9305 New quiz option addded: decimalpoints
(used to decide the number of decimals showed in grades)
2005-02-14 18:24:24 +00:00
stronk7
8a15200d23 Avoid tons of warnings with debug=on creating false answers for this question type. 2005-02-14 00:51:36 +00:00
gustav_delius
2f945146d7 Made the quiz paging bar look more like the standard one, see bug 2443. 2005-02-13 14:58:45 +00:00
stronk7
95e72c12d0 Now retrieving only needed fields! 2005-02-13 00:42:29 +00:00
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
defacer
e96ba29d6f Vastly improved styles, lots of inline styles removed, markup improved. 2005-02-12 11:37:09 +00:00
gustav_delius
8930d42124 The table on view.php now also shows the marks achieved in each attempt in addition to the rescaled grade. 2005-02-11 19:51:29 +00:00
moodler
f1c1d2f166 Removing the THEME variable and adding in classes where appropriate 2005-02-10 10:41:22 +00:00
moodler
1ac2128075 No message popups during secure quizzes 2005-02-10 05:13:05 +00:00
defacer
4f0d565da6 Bringing Quiz in line with Martin's "make Chat into a showcase for pages" idea. 2005-02-10 01:59:11 +00:00
defacer
de4505fef3 Removing bad slashes from HTML. 2005-02-09 15:42:05 +00:00
defacer
d1b7d61e74 Oops! Wrong optional_param() calls. 2005-02-09 15:31:47 +00:00
defacer
d7a2023d04 Bring the param checking to the modern standard. 2005-02-09 15:30:15 +00:00
defacer
8ff1d30259 Let $PAGE print the header, as it should be, instead of doing it manually. 2005-02-09 15:08:51 +00:00
stronk7
0183a6c48e One minor problem restoring categories in XHTML solved 2005-02-07 23:45:19 +00:00
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00
gustav_delius
0726eb27bb replaced href="#" by href="javascript:void()" as suggested in bug #1980 2005-02-06 15:18:09 +00:00
gustav_delius
2b6271fccc I have changed the icon for removing a question from a quiz from X to >> and changed the label from 'Delete' to 'Remove' because it does not delete the question but only removes it from the quiz. 2005-02-06 10:42:31 +00:00
gustav_delius
51d0c8b0bd edit column in question tables on edit.php are now wide enough to hold all icons without line break 2005-02-06 07:55:05 +00:00
gustav_delius
f0148d973c If a question is removed from a quiz then also all existing responses (e.g. from teacher attempts) are removed. Thanks to Eloy for pointing out that this was missing, http://moodle.org/mod/forum/discuss.php?d=17167#83331 2005-02-06 07:45:40 +00:00
gustav_delius
b37cacae47 It is now no longer possible to add or delete questions in a quiz that students have already attempted, see http://moodle.org/mod/forum/discuss.php?d=16479#86488 2005-02-05 21:03:04 +00:00
gustav_delius
6eaae5bdd2 fixed my own type (missing ;) 2005-02-05 20:00:15 +00:00
gustav_delius
6f7970138a Taken out some $THEME 2005-02-05 17:28:06 +00:00
gustav_delius
adf3c01551 fixed stupid bug in code for adding random questions 2005-02-03 18:04:15 +00:00
defacer
768320dcc9 Update for the new APIs and simplification. 2005-02-02 02:46:06 +00:00
defacer
fc0551248e Polishing that Add/Edit Blocks button 2005-02-01 08:35:06 +00:00
defacer
8dffa4df07 Don't forget to kill all our block instances if we are deleted. 2005-02-01 07:40:58 +00:00
defacer
bdfa14dd7f All right, we can now have blocks in quiz pages!
Let's test it a while and see what we learn from it.
2005-02-01 07:16:19 +00:00
stronk7
2d81101163 Solved sesskey issue in calculated questions. Bug 2464
(http://moodle.org/bugs/bug.php?op=show&bugid=2464)
2005-01-31 16:40:08 +00:00
skodak
db24312891 cleaned download filename SC#69, merged from MOODLE_12_STABLE 2005-01-29 15:16:32 +00:00
skodak
4ffdd3937f direct access to script forbidden SC#58, merged from MOODLE_14_STABLE 2005-01-29 14:18:45 +00:00