Commit Graph

162 Commits

Author SHA1 Message Date
Eloy Lafuente 41941110fd MDL-22138 backup - I know smaller cathedrals than this, yay quizzes! 2010-10-24 10:43:42 +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 7f38934243 MDL-24321 switching to stdClass in /question/ - I am sure Tim will be very happy 2010-09-21 08:20:46 +00:00
Eloy Lafuente 7660715f65 MDL-22164 backup - finished cleaning of questions backup code 2010-09-21 00:23:26 +00:00
Tim Hunt 2d01a9168f question import/export MDL-23198 extra_question_fields not handling special characters properly.
Thanks to Oleg Sychev for the fix.
2010-08-11 19:05:47 +00:00
Dongsheng Cai fe6ce23489 MDL-16094 File storage conversion Quiz and Questions 2010-08-10 09:56:48 +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 b97d264489 qtype base: NOBUG improve comments and private function name. 2010-07-05 16:53:50 +00:00
Tim Hunt 4ba32cf15d question base type: Fix typo. 2010-04-06 11:49:50 +00:00
David Mudrak 16be897441 MDL-21652 html_table rendering refactored
* class html_component does not exist any more
* class html_table rendered via html_writer::table()
* html_table, html_table_row and html_table_cell have public $attributes property to set their CSS classes
* dropped rotateheaders feature, should be added again after more research of possible ways (<svg> is not nice IMHO)
* dropped possibility to define CSS classes for table heading, body and footer - can be easily done and better done using just table class and context
2010-03-20 22:15:54 +00:00
Tim Hunt e65701ee2d nobug: whitespace fixes. 2010-02-23 14:31:07 +00:00
Petr Skoda 9bf163146b MDL-20204 more html_link converstions 2010-02-11 18:50:55 +00:00
Petr Skoda 9dec75dbcc MDL-21240 shortened urls now start with / everywhere 2010-01-18 20:57:32 +00:00
Petr Skoda 4bcc51185c MDL-21217, MDL-21198 simplified/improved outputlib help icon related apis + several fixed regresions 2009-12-30 15:19:55 +00:00
Petr Skoda 2f67a9b3a5 MDL-20700 whitespace terror returns yet again 2009-12-16 22:22:37 +00:00
Petr Skoda b5d0cafc6f MDL-20787 final switch to new $OUTPUT->pix_url() - yay! 2009-12-16 21:50:45 +00:00
Petr Skoda 78946b9bdb 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 2009-12-16 18:00:58 +00:00
Sam Hemelryk a5d96f9307 question MDL-20910 Fixed buggy conversion of link_to_popup_window 2009-12-07 02:43:35 +00:00
Tim Hunt e14de5aa1c random question history MDL-20951: Two minor bugs in the fix for MDL-20776.
Thanks to Oleg Sychev for noticing these problems.
2009-11-24 11:49:21 +00:00
Tim Hunt 6224d7a10d question editing from quiz: MDL-20709 better return URL. 2009-11-19 19:09:04 +00:00
Tim Hunt 5c86dc7c72 question history: MDL-20776 state history was not shown for random questions
I took the opportunity to clean up the code that generates the history.
Thanks to G?bor Katona for helping to find the problem.
2009-11-19 19:03:55 +00:00
Tim Hunt 5ffd1421a5 manual grading: MDL-20581 Fix potential XSS problem.
Thanks to Penny for spotting this.
Merged from MOODLE_19_STABLE.
2009-11-19 17:31:41 +00:00
Petr Skoda aeb15530b8 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 11:57:52 +00:00
tjhunt 88bc20c30f question types: MDL-20157 export_to_xml and import_from_xml functions for question types using extra_question_fields.
Thanks to Oleg Sychev for the implementation.
2009-09-30 13:38:36 +00:00
samhemelryk 1d58b567be question MDL-19820 Replaced deprecated functions 2009-09-25 04:16:27 +00:00
nicolasconnault 80e7bb44cf MDL-19820 Upgraded calls to link_to_popup_window() 2009-08-20 13:17:43 +00:00
nicolasconnault a941387a02 MDL-19820 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:49:11 +00:00
nicolasconnault fef8f84e4b MDL-19822 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:19:00 +00:00
nicolasconnault beb677cda6 MDL-19820 Converted print_box* to $OUTPUT->box* 2009-08-10 05:01:23 +00:00
nicolasconnault 9b59580b36 MDL-19820 Converted all print_footer() calls 2009-08-06 14:19:16 +00:00
nicolasconnault 04a7ba52e9 MDL-19756 Removed explicit aligning CSS class from $OUTPUT->heading() calls 2009-08-06 08:55:02 +00:00
nicolasconnault 723d610c91 MDL-19820 Migrated calls to print_heading 2009-08-06 08:26:06 +00:00
tjhunt ddedf979b4 MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-03 06:19:25 +00:00
tjhunt f2a1963c43 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 11:09:15 +00:00
tjhunt 25ddb7efc9 javascript: MDL-19475 replace require_js calls with $PAGE->requires->js.
This is the final batch.
2009-06-15 07:57:53 +00:00
skodak fc29e51b2d MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 18:34:43 +00:00
skodak bb4b6010f3 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 17:17:10 +00:00
tjhunt cf6155226c ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc.
There is a new implementation of require_js in lib/deprecatedlib.php,
based on $PAGE->requires.

There were a few other recently introduced functions in lib/weblib.php,
namely print_js_call, print_delayed_js_call, print_js_config and
standard_js_config. These have been removed, since they were never in
a stable branch, and all the places that used them have been changed
to use the newer $PAGE->requires->... methods.

get_require_js_code is also gone, and the evil places that were calling
it, even though it is an internal function, have been fixed.

Also, I made some minor improvements to the code I committed yesterday
for MDL-16695.

All that remains is to update all the places in core code that are
still using require_js.

(This commit also fixes the problem where the admin tree would not
start with the right categories expanded.)
2009-06-12 12:13:07 +00:00
tjhunt 50da63ebd9 qtypes: MDL-18711 Allow qtype plugins to have custom CSS and JavaScript on the editing page. 2009-03-30 09:15:46 +00:00
tjhunt 5995f17f72 qtypes: MDL-18559 questions showing penalty information when they shouldn't.
We had a !== when it should have been !=, and our constants were defined as strings not ints. This problem has been there since forever, but no one had noticed before. Thanks to Alan Trick for finally spotting it!
2009-03-16 01:52:47 +00:00
tjhunt 26da840f6b quiz and qtypes: Regressions from MDL-7308 since '0.0000000' is not empty() in PHP. 2009-03-11 06:36:25 +00:00
tjhunt b974f94757 quiz editing: MDL-18355 Try to improve the discoverability of Description again. 2009-02-26 06:33:18 +00:00
tjhunt 4995b9c19c question types: API cleanup.
MDL-18350 remove backwards compatibility support for question types having their lang strings in the quiz language module.
MDL-16407 settings.php support for question types. Remove the old get_config_options from question types. I don't think anyone was using it.
2009-02-25 07:01:57 +00:00
tjhunt 24e8b9b684 question bank: MDL-12719, MDL-15774, MDL-17105, and MDL-18174
These are all to do with the combination of the $form->category, and $form->categorymoveto fields on the question editing forms since Moodle 1.9. These are now resolved to a single ->category value in question.php, which simplifies the logic for the individual question types.

MDL-15774 and MDL-12719 errors editing Cloze question
MDL-17105 problems with qustion saving logic.
MDL-18174 'Select from subcategories' option not preserved when editing a random question.
2009-02-13 06:11:42 +00:00
tjhunt a18ba12ca6 quiz / questions: MDL-17919 Bad link edit questions from quiz preview page.
Thanks to Ann Adamcik for noticing this. It was a regression from MDL-6085.
2009-01-16 04:47:23 +00:00
tjhunt c795dc7843 questiontypes: MDL-17800
Fix another merge error.
2009-01-16 04:24:24 +00:00
tjhunt 815262cab6 questiontypes: MDL-17800
Fix merge error.
2009-01-16 04:23:21 +00:00
tjhunt c51c539d11 questiontypes: MDL-17800 Add extra_question_fields() support to backup/restore functions.
* Implement this in the base class, and
* use this in the shortanswer type as a proof of concept.

This makes writing new question type subclasses a bit easier. Thanks to Oleg Sychev for this code.
2009-01-15 07:29:07 +00:00
tjhunt d65c238b2c question engine: MDL-17651 this context is not used anywhere, so remove it.
(There was a bug in the get_context_instance call.)
2009-01-15 05:15:38 +00:00
tjhunt d001dac77b shortanswer qtype: MDL-17706 use extra_question_fields mechanism to save on code. Changes thanks to Oleg Sychev. 2009-01-09 05:10:33 +00:00