Tim Hunt
b3782c71bf
MDL-20636 My go and creating a renderer for mod/quiz/review.php.
...
Note that this breaks the attempt.php page; there are a lot of methods that are missing PHPdoc comment; there are probably now some unused methods that could be deleted; and there are a couple of places which could be handled a bit better.
But, overall, I think this way makes sense.
2011-05-09 12:30:39 +01:00
Tim Hunt
c7df5006b9
MDL-20636 Add lots of missing public/protected/private.
2011-03-23 16:22:25 +00:00
Tim Hunt
3c6185e979
MDL-20636 Move restart preview button into the quiz nav block & remove unnecessary titles.
...
Also, remove automatic redirects to the quiz edit page. Show a message and a button instead.
2011-02-25 12:12:09 +00:00
Tim Hunt
88f0eb1546
MDL-20636 Reveiw all throw statements.
2011-02-23 16:50:09 +00:00
Tim Hunt
f7970e3ca7
MDL-20636 Eliminate integer and boolean in PHPdoc comments. should be int and bool.
2011-02-23 16:25:25 +00:00
Tim Hunt
a17b297d60
MDL-20636 Add missing defined('MOODLE_INTERNAL') || die();
2011-02-23 16:00:20 +00:00
Tim Hunt
0ff4bd0877
MDL-20636 Fix new stdClass -> stdClass(), and trailing whitespace.
2011-02-21 18:10:19 +00:00
Tim Hunt
ba6438471b
MDL-20636 Fix top of file boilerplate in mod/quiz.
2011-02-21 16:13:25 +00:00
Tim Hunt
8032cd792c
MDL-25122 Quiz review page does not check and enforce separate groups mode.
2011-02-18 17:36:18 +00:00
Tim Hunt
a8a8ec51fc
MDL-20636 Fix bug with starting an attempt. Now uses exceptions, so should not check return values.
2011-02-12 00:40:43 +00:00
Tim Hunt
2709ee45d3
MDL-20636 Working on converting the reports, starting with the manual grading report. Very much a work-in-progress.
...
Also, some random bug-fixing.
2011-02-11 18:47:08 +00:00
Tim Hunt
56e82d993d
MDL-20636 Images in questions now work in quiz attempts.
2011-02-09 20:33:51 +00:00
Tim Hunt
7ee80cab53
MDL-20636 Manual comment popup comment.php now works.
2011-02-09 20:29:59 +00:00
Tim Hunt
b2607ccc19
MDL-20636 Now the quiz review page works.
2011-02-09 20:18:24 +00:00
Tim Hunt
8f37f7fb7a
MDL-20636 It is now possible to submit a page of the quiz, and view the summary page.
2011-02-09 20:18:18 +00:00
Tim Hunt
a1eb3a4466
MDL-20636 It is now possible to start a quiz attempt.
...
This includes merging the CSS.
2011-02-09 20:18:15 +00:00
Petr Skoda
b6f3e4f8f0
Merge branch 'MDL-26098' of git://github.com/timhunt/moodle
2011-01-31 19:25:41 +01:00
Tim Hunt
3708abd0f2
javascript MDL-26098 make the review this question in a previous state popup work.
2011-01-29 13:59:51 +00:00
Tim Hunt
2cb01c9205
mod_quiz MDL-26178 it let you try to preview a quiz with several empty pages.
...
You should not be allowed to preview an empty quiz, to make it correctly detect this case.
2011-01-29 12:11:10 +00:00
Tim Hunt
a9efae50e3
question upgrade MDL-16094 fix up earlier mistakes in the text format upgrade.
...
There was a mistake in the text format upgrade in the question bank. The wrong conversions were performed, and the wrong arguments were passed to text_to_html in the conversions that were done.
Also, not all the calls to format_text had been updated to use the values in the new format columns.
I think this change fixes everything, but I have only had very limited time to test it. I am committing it anyway, because that seems to me to be the best way to maximise testing. I think that the new code is certainly better than the old code was.
2010-11-11 17:32:25 +00:00
Tim Hunt
157434a522
quiz/question javascript MDL-24170 Enter in a shortanswer question preview should not flag the question.
...
That bit of JavaScript from mod/quiz/attempt.php is needed in question preview too, so refactor a bit.
I was disappointed to find that the
$PAGE->requires->js_module('core_question_engine');
line was needed in quiz_get_js_module, but it seems to be.
Also change non-Moodle-y string "End test..." to "Finish attempt..."
2010-11-01 17:44:59 +00:00
Tim Hunt
db04866591
quiz MDL-24760 recent fix quiz preview/review by teacher.
2010-10-22 17:24:09 +00:00
Tim Hunt
fb6dcdab11
quiz & qbank MDL-24453 fix all the ways you can edit a question, so that that returnurl paramterer acutally works.
...
I hope. Please test thoroughly.
2010-10-18 15:28:59 +00:00
Petr Skoda
39790bd805
MDL-24321 switching to stdClass in /mod/
2010-09-21 08:37:36 +00:00
Tim Hunt
ea9dbf24c5
quiz MDL-23937 fix broken URL.
2010-08-25 15:58:26 +00:00
Tim Hunt
c0934fc42a
quiz 'secure' window MDL-23713 securewindow_access_rule::make_review_link was broken.
2010-08-11 17:20:05 +00:00
Tim Hunt
36fa6cb133
quiz NOBUG fatal error on the review page.
...
I am pretty sure this check is not necessary, preload_question_states will have loaded enough information.
2010-08-11 16:54:07 +00:00
Tim Hunt
38c9edd0a0
quiz nav NOBUG whitespace and comment clean-up.
2010-08-10 13:30:32 +00:00
Dongsheng Cai
fe6ce23489
MDL-16094 File storage conversion Quiz and Questions
2010-08-10 09:56:48 +00:00
Tim Hunt
a26246eac2
quiz attempt UI NOBUG need accesshide text in the quiz navigation to say if a question has been flagged.
2010-08-09 17:10:25 +00:00
Tim Hunt
c68287a928
mod_quiz / navigation MDL-20276 replace make_active with override_active_url
...
It doesn't work, but I am committing it, so Sam H can take a look.
2010-08-05 18:15:17 +00:00
Tim Hunt
f23f98dd63
question flags MDL-22643 Manually commenting should not reset the flag state.
2010-08-04 18:56:51 +00:00
Tim Hunt
ff065f96bc
mod quiz + questions MDL-22370 convert JavaScript to YUI3 and modules.
...
Note, quiz editing JS has not been done yet.
2010-08-04 15:22:04 +00:00
Tim Hunt
a88ba5700c
NOBUG quiz start attempt Fix the quiz password page.
2010-07-28 15:06:28 +00:00
Tim Hunt
990650f94c
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.
2010-03-08 16:01:38 +00:00
Tim Hunt
cdede6fbfe
quiz: MDL-21404 Fix Petr's screw-up when converting to js_writer.
2010-03-08 15:32:45 +00:00
Petr Skoda
60409fe103
MDL-21532 ->in_head() now really exceptional (after overrlib removal there will be just a few of them)
2010-02-06 14:09:33 +00:00
Petr Skoda
227255b802
MDL-21402 new js_writer abstraction + otehr minor improvements
2010-01-20 20:01:24 +00:00
Petr Skoda
9dec75dbcc
MDL-21240 shortened urls now start with / everywhere
2010-01-18 20:57:32 +00:00
Petr Skoda
5c2ed7e215
MDL-21198 $OUTPUT->single_button() resurrection, hopefully much easier to use than $OUTPUT->button(); fixed some regressions and code style improvements
2010-01-03 15:46:14 +00:00
Petr Skoda
812dbaf7d5
MDL-21198 improved/simplified $OUTPUT->user_picture() + regression fixes, performance fixes and detected performance problems when printing user avatars
2009-12-27 19:47:21 +00:00
Petr Skoda
985d1d1d22
MDL-21187 brand new yui2 lib loading now using the official YAHOO oholoaders which properly resolves all dependencies; please note we are still suing the YUI2 CSS preloading
2009-12-25 15:27:47 +00:00
Sam Hemelryk
92059c7ee5
mod MDL-21169 Removed update this module button and ensured there was a link in the settings block for it.
2009-12-23 01:57:55 +00:00
Petr Skoda
f44b10ed93
MDL-21139 replace all yui functions/methods with yui2 to make room for yui3
2009-12-16 20:25:14 +00:00
Petr Skoda
8319260833
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup
2009-11-04 11:58:30 +00:00
pichetp
4acb204c7d
mod-quiz MDL-19813 $OUPUT and cm defined correctly
2009-09-29 04:49:23 +00:00
samhemelryk
663db34daa
mod-quiz MDL-19813 Added set_url calls, replaced deprecated functions
2009-09-24 09:02:58 +00:00
samhemelryk
2698e9c1ac
mod-quiz MDL-19813 Updated print_header and build_navigation to OUTPUT and PAGE equivalents
2009-09-07 02:11:54 +00:00
nicolasconnault
39e3701904
MDL-19813 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno
2009-08-20 08:45:47 +00:00
tjhunt
05d3c06e36
quiz: XHTML strict.
2009-07-29 03:51:34 +00:00