Commit graph

4628 commits

Author SHA1 Message Date
jamiesensei
64eeaf4753 removed all session fromurl and returnurl stuff from question bank editing code. Returnurls are now passed as get/post params. 2007-05-07 07:13:14 +00:00
jamiesensei
f86c2c84b1 fixed error in import.php category object fetching logic 2007-05-07 07:08:41 +00:00
jamiesensei
561fe61df3 return to the proper page after editing a question in the question bank. 2007-05-07 06:35:33 +00:00
jamiesensei
d340fde6c4 oops. Accidentally committed a change in default no of category items displayed which I'd changed for debug purposes. Reverting change. 2007-05-07 05:57:49 +00:00
jamiesensei
986effb653 pass the category list page param from page to page in question bank editing pages. 2007-05-07 05:53:20 +00:00
jamiesensei
a4758a8632 require_login is in 'question_edit_setup' we don't need to call it again here. 2007-05-07 05:12:09 +00:00
jamiesensei
7bc26c8f6d changes to pass category id from page to page in question bank editing. 2007-05-07 04:55:55 +00:00
pichetp
eeea21878d adding calculated question import MDL-5650 2007-05-07 04:01:20 +00:00
thepurpleblob
5931ea94a1 MDL-9675:
Default value added for 'answernumbering'. Default is 'abc'
2007-05-05 14:44:12 +00:00
thepurpleblob
cdeabc0638 Fixed hard coded string 2007-05-04 14:31:56 +00:00
jamiesensei
36e298bc58 removed more session stuff from question list and category form in question bank display code 2007-05-04 10:46:33 +00:00
tjhunt
2c89cfb533 Matching qestion type was failing to correctly determine wheterh the student had changed their answer - further improvements. Merged from MOODLE_18_STABLE. 2007-05-04 10:04:20 +00:00
jamiesensei
9ab3847595 tightening up reg expressions used for submitted data a bit 2007-05-04 08:33:28 +00:00
jamiesensei
1d88985787 removing TODO comment as the question.php script no longer treats quiz as special. 2007-05-04 06:09:37 +00:00
jamiesensei
c65b63deb6 removed global var declaration for var that wasn't used in function 2007-05-04 05:51:59 +00:00
jamiesensei
9ab75b2bcc passing cmid to question.php and removed use of session modform var. Question.php now independent of quiz module. Small improvement to displayed breadcrumbs. 2007-05-04 05:47:59 +00:00
jamiesensei
e22618dd73 deleted redundant method which was just calling the parent method. 2007-05-04 05:30:03 +00:00
jamiesensei
b72ff47685 moved question sort order and paging params to be passed from page to page as get params instead of being saved in session var. 2007-05-03 10:10:01 +00:00
jamiesensei
86909ce047 small fix to get question code to return to correct place after creating a new question. 2007-05-03 05:17:07 +00:00
jamiesensei
71e0eda8f7 standardizing params for edit question page. All pages now use courseid instead of course or id. 2007-04-30 06:48:57 +00:00
tjhunt
bac40536f4 MDL-9616 - Custom checks in environment.xml 2007-04-27 17:15:24 +00:00
jamiesensei
efe839dc12 Removed 'edit category' redundant button 2007-04-27 11:27:57 +00:00
tjhunt
8e652f025b Insufficient error checking was causing problems. 2007-04-27 11:05:57 +00:00
jamiesensei
f3ba642c5c forget to pass page parameter during redirects. 2007-04-27 05:48:12 +00:00
tjhunt
27987cbb78 Eliminate support for old-style question editing forms. 2007-04-25 18:20:04 +00:00
tjhunt
e3aea79afe MDL-9565 - Fix error in previous commit. Merged from MOODLE_18_STABLE. 2007-04-25 17:59:53 +00:00
pichetp
56e248a086 MDL-9657 cleaning abstractype code. 2007-04-25 16:48:33 +00:00
jamiesensei
a982d582c4 Added redirects after all actions.
Added methods to category class to generate a url from an array of parameters stored in the object.
Cleaned up some old redundant code for actions now processed in list class.
2007-04-25 14:06:37 +00:00
thepurpleblob
fa5cb18b74 MDL-9577:
Fixing change of name (answer => correctanswer) for true/false questions.
2007-04-25 09:43:37 +00:00
pichetp
d77def3e74 MDL-9657 cleaning abstractype code. 2007-04-25 09:06:35 +00:00
pichetp
81c6503ec4 removing comments and print_r 2007-04-25 08:52:47 +00:00
pichetp
a6d46515f1 MDL-9496 Adding multianswer to calculated and MDL-9657 cleaning abstractype code. 2007-04-25 08:15:50 +00:00
tjhunt
7375c542cf Clean up whitespace. 2007-04-24 23:39:22 +00:00
tjhunt
ed0ba6da04 Occasional unique-key violations were caused by some really weird code to do with units in numerical questions. This cleans it up. 2007-04-24 23:37:32 +00:00
tjhunt
295043c21c Base class methods preparitory to deleting a lot of essentially duplicated code from the various question types. 2007-04-24 23:31:41 +00:00
tjhunt
53a4d39f1c Clean up whitespace. 2007-04-24 23:26:48 +00:00
tjhunt
06d20c2429 Clean up trailing whitespace. 2007-04-24 23:25:33 +00:00
tjhunt
cb354a653c Fix comedy require_once. Merged from MOODLE_16_STABLE. 2007-04-24 21:16:14 +00:00
tjhunt
7d87171ba9 MDL-9565 - Question preview links don't work in developer debug mode, and not XHTML strict. Merged from OU Moodle. 2007-04-24 16:59:32 +00:00
tjhunt
fe76ab5006 MDL-9389 - True / False penalty factor field redundant. Merged from MOODLE_18_STABLE. 2007-04-23 16:23:17 +00:00
tjhunt
fe6480283c MDL-9447 - Default grade field is redundant in embeded answer (Cloze) question. Merged from MOODLE_18_STABLE. 2007-04-23 13:55:22 +00:00
pichetp
1d9bc9a60d add string of Update the category button 2007-04-20 02:43:28 +00:00
tjhunt
e3b2eb60e1 MDL-9432 - Forgot to return success/failure in two places. 2007-04-19 17:37:14 +00:00
pichetp
0dd3e11c8c add an update category submit button to update the display of shareable wild cards 2007-04-19 16:49:25 +00:00
jamiesensei
dac786f300 MDL-9437 lib/listlib.php for displaying and editing a nested list of items. And changes to question\category.php to use the new lists. 2007-04-19 08:57:54 +00:00
tjhunt
c85607f0be MDL-9432 - When restoring questions, links are not recoded. Merged from OU moodle. 2007-04-18 15:56:21 +00:00
tjhunt
3e0647ffaf MDL-9342 - Let the question author choose how the options are numbered in Multiple choices questions. 2007-04-13 21:16:04 +00:00
tjhunt
3509094e65 Remove blank line at start of file. 2007-04-13 16:25:10 +00:00
tjhunt
99ba746d29 MDL-6368 and MDL-6369 - allow question type plugins to easily provide some bits of Javascript and CSS.
If there are any of the files styles.css, styles.php, script.js or script.php in the plugin folder, they will be linked to in the head of the quiz attempt page (only for the question types used on that page).

If you need to do something more complicated in your question type, you can override the get_html_head_contributions method instead.
2007-04-12 15:58:32 +00:00
tjhunt
dcc2ffde63 MDL-9082 - moodle/question:manage does not let you create questions. Also: * remove useless option from print_question_icon * use the right module context in question_list * a bit of XHTML strrrict in question_list Merged from MOODLE_18_STABLE. 2007-04-11 22:57:46 +00:00