ppichet
feec4f8941
MDL-26511 Images in Cloze multichoice
...
vertical and horizontal answer and in feedback of all qtype answers
2013-06-10 11:28:46 +08:00
Marina Glancy
b33389d228
MDL-38147 Created class coursecat, added cache definition and lang strings
2013-03-25 13:20:33 +11:00
Tim Hunt
97f1137a61
MDL-36806 question files: fix unnecessary require_login call.
...
quiz_question_pluginfile later does the correct check. Doing this
other check first means you get an error about changing $PAGE->context.
2012-11-23 15:54:58 +00:00
Tim Hunt
a560d636f4
MDL-34399 questions: cache to help load question definitions.
...
At the moment, it takes several DB queries to load each question definition,
so this cache is potentially a big win.
2012-10-26 11:58:02 +08:00
Tomasz Muras
e80c64ab9d
MDL-35547 Fetch more sub-categories with one SQL query.
2012-09-30 18:15:06 +02:00
Tomasz Muras
0f76ac4f2e
MDL-35547 Detect loops in question categories.
2012-09-30 18:15:06 +02:00
Tomasz Muras
e3810d112a
MDL-35547 Detect question category pointing to itself as a parent.
2012-09-30 18:15:06 +02:00
Tim Hunt
fc51c2bce2
MDL-27818 question bank: multilang category names don't work.
2012-08-30 22:42:15 +01:00
Aparup Banerjee
9455f48280
Merge branch 'MDL-34549-master' of git://github.com/ankitagarwal/moodle
2012-08-28 11:45:11 +08:00
Eloy Lafuente (stronk7)
d683fcdf98
Merge branch 'MDL-34993' of git://github.com/timhunt/moodle
2012-08-27 18:35:23 +02:00
Tim Hunt
aa5f05110f
MDL-35055 question import: slight error with the Match grades option.
...
Even in the 'Error if grade not listed case', it was applying a small
tolerance. In the case of a fuzzy match, it was returning the inexact
grade from the import file, rather than the precise grade that Moodle
was expecting.
That causes problems when the editing form is displayed, because the
value from the database does not match any of the available options, so
the grade is changed to 0%.
2012-08-24 15:34:20 +01:00
Ankit Agarwal
d197ea4300
MDL-34549 libraries: Replace get_context_instance_by_id() by context::instance_by_id()
2012-08-24 11:30:10 +08:00
Tim Hunt
d2acbd1ad4
MDL-34993 questions: convert numeric fields to float on load.
...
NUMBER(X,Y) typically come back from the DB as strings. If you don't
convert them to float, then when you display them, it appears as
1.0000000, which is not normally what you want.
Also, increase the size of the field on the edit form, so if you
question does have default mark 0.1234567, you can see that!
2012-08-23 19:28:05 +01:00
Aparup Banerjee
87c12fec13
Merge branch 'MDL-34650' of git://github.com/rwijaya/moodle
2012-07-31 13:19:47 +08:00
Rossiani Wijaya
ecc5cc31ae
MDL-34650 - accessibility compliance: Add <label> for form input text and select tag
2012-07-31 12:07:16 +08:00
Adrian Greeve
b0c6dc1cac
MDL-34465 - lib - Replacing get_context_instance with context_XXXX::instance (group 8)
2012-07-27 10:10:46 +08:00
Aparup Banerjee
38d488cea1
MDL-33400 Lib : fixed character miscount
2012-06-14 10:56:40 +08:00
Dan Poltawski
813f6964ca
MDL-33400 questionlib - minor whitespace/equality imporvement
2012-06-14 10:28:34 +08:00
Aparup Banerjee
0dd0f96373
MDL-33400 Libraries : added callback to *_question_pluginfile without 'mod_' prefix
2012-06-14 01:30:52 +08:00
David Mudrak
7a00d4385d
MDL-32471 preview thumbnails support for other component types
...
This commit affects mostly qtypes. Other standard components either do
not have pluginfile handler or have been already updated to the new API.
2012-04-24 14:29:44 +02:00
Sam Hemelryk
3211569a6a
Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag"
...
This reverts commit f9f281b8fee75c2416d71bae7583fd026b9ccabb.
2012-04-11 17:18:58 +12:00
Sam Hemelryk
5bfeb5ffd3
Merge branch 'MDL-30843_b' of git://github.com/rwijaya/moodle
2012-04-10 12:34:37 +12:00
Rossiani Wijaya
f9f281b8fe
MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag
2012-03-30 16:26:58 +08:00
Tim Hunt
76cf77e4d3
MDL-32240 quiz editing: check permissions questions are added.
...
We also check permissions when removing questions from the quiz, so that
we do not let users make mistakes they cannot immediately undo.
2012-03-29 14:14:12 +01:00
Gootvilig David Hai
fe0fbfae31
MDL-31876 questionlib: fix question_has_capability_on memory bloat
2012-03-05 14:40:28 +02:00
Dongsheng Cai
d2b7803e5a
MDL-30973 Files API, check and update DocBlock
2012-02-15 12:48:57 +08:00
Tim Hunt
6f4c71f5fe
MDL-30744 question editing permissions. Update to new accessslib.php code.
...
I don't believe this will actually fix the reported problem, which I
cannot reproduce, but it should give us much better error messages, at
which point we can fix it.
2011-12-15 11:54:58 +00:00
Eloy Lafuente (stronk7)
12727710d4
Merge branch 'MDL-30592' of git://github.com/timhunt/moodle
2011-12-14 22:03:26 +01:00
Tim Hunt
0019a9b7aa
MDL-30592 question_bank: make files in qtext work in the question list.
2011-12-09 19:23:53 +00:00
Tim Hunt
fdb5bc03f5
MDL-30592 quiz statistics, ensure images in the question text appear.
2011-12-09 19:23:46 +00:00
Tim Hunt
9d0ac0ffbb
MDL-27143 question bank: questions not saved when deleting a category.
...
Based on a fix by Nikhil Gupta.
2011-12-09 18:03:52 +00:00
Petr Skoda
16ef46e7b6
MDL-29450 improve and cleanup course content removal
...
New keep roles/enrolments and groups/groupings options, notification CSS fixed, standardised notification texts, added missing delete of module blocks, fixed file deleting and some other minor issues.
2011-11-23 18:37:36 +01:00
Tim Hunt
5cc021a00b
MDL-30069 Question type icons missing in lots of places.
2011-11-15 11:17:18 +00:00
Tim Hunt
646791794d
MDL-29808 qformats: use standard pluginname string and add version.php
...
AMOS BEGIN
MOV [aiken,qformat_aiken],[pluginname,qformat_aiken]
MOV [aiken_help,qformat_aiken],[pluginname_help,qformat_aiken]
MOV [aiken_link,qformat_aiken],[pluginname_link,qformat_aiken]
MOV [blackboard,qformat_blackboard],[pluginname,qformat_blackboard]
MOV [blackboard_help,qformat_blackboard],[pluginname_help,qformat_blackboard]
MOV [blackboard_six,qformat_blackboard_six],[pluginname,qformat_blackboard_six]
MOV [blackboard_six_help,qformat_blackboard_six],[pluginname_help,qformat_blackboard_six]
MOV [examview,qformat_examview],[pluginname,qformat_examview]
MOV [examview_help,qformat_examview],[pluginname_help,qformat_examview]
MOV [gift_help,qformat_gift],[pluginname_help,qformat_gift]
MOV [gift_link,qformat_gift],[pluginname_link,qformat_gift]
MOV [learnwise,qformat_learnwise],[pluginname,qformat_learnwise]
MOV [learnwise_help,qformat_learnwise],[pluginname_help,qformat_learnwise]
MOV [missingword,qformat_missingword],[pluginname,qformat_missingword]
MOV [missingword_help,qformat_missingword],[pluginname_help,qformat_missingword]
MOV [missingword_link,qformat_missingword],[pluginname_link,qformat_missingword]
MOV [multianswer,qformat_multianswer],[pluginname,qformat_multianswer]
MOV [multianswer_help,qformat_multianswer],[pluginname_help,qformat_multianswer]
MOV [multianswer_link,qformat_multianswer],[pluginname_link,qformat_multianswer]
MOV [webct_help,qformat_webct],[pluginname_help,qformat_webct]
MOV [webct_link,qformat_webct],[pluginname_link,qformat_webct]
MOV [xhtml,qformat_xhtml],[pluginname,qformat_xhtml]
MOV [xhtml_help,qformat_xhtml],[pluginname_help,qformat_xhtml]
MOV [xhtml_link,qformat_xhtml],[pluginname_link,qformat_xhtml]
MOV [xml_help,qformat_xml],[pluginname_help,qformat_xml]
MOV [xml_link,qformat_xml],[pluginname_link,qformat_xml]
AMOS END
2011-11-10 19:12:28 +00:00
Tim Hunt
44a7f3840d
MDL-29474 fix qtype and qbehaviour plugins to use proper pluginname strings.
...
But maintain backwards-compatibility for now.
2011-10-20 11:13:27 +01:00
Tim Hunt
6fd1995d3b
MDL-28614 questions: remove another obsolete editing_head_contributions fn.
2011-10-17 23:53:53 +01:00
Sam Hemelryk
d609d96261
MDL-28599 textlib Separated collator to collatorlib with static methods, and added support for locale aware sorting of objects
2011-09-06 15:39:00 +12:00
Tim Hunt
2a73f863ff
MDL-28687 questions avoid fatal errors when reviewing attempts at deleted questions.
2011-08-18 13:59:07 +01:00
Eloy Lafuente (stronk7)
be13d37a02
Merge branch 'MDL-28074' of git://github.com/timhunt/moodle
2011-06-29 23:09:13 +02:00
Tim Hunt
56a4ae4673
MDL-28074 question preview should set context/course/cm properly.
...
1. We need this so that, for example, when previewing a question from
the quiz editing page, the preview uses the filter settings, theme and
language set for that quiz and course.
2011-06-29 21:25:56 +01:00
Sam Hemelryk
f86e19b1ee
Merge branch 'MDL-27829_block_pagetype_master' of git://github.com/andyjdavis/moodle
2011-06-29 17:04:13 +08:00
Andrew Davis (andyjdavis)
b38e2e28a1
MDL-27829 blocks: altered the algorithm used to find plugin page types
2011-06-27 12:27:41 +08:00
Tim Hunt
8356e6cff8
MDL-26199 keep track of the current category when switching pages in the question bank.
2011-06-23 07:18:49 +01:00
Sam Hemelryk
46d3b9be73
Merged branch 's7_MDL-26105_block_settings_master' git://github.com/andyjdavis/moodle.git with changes
2011-06-13 16:54:52 +08:00
Tim Hunt
55190d7e2c
MDL-20538 get rid of badly name-spaced constants from lib/questionlib.php.
...
Unfortunately, they are used all over the import/export code, so I cannot eliminate them completely. However, I was able to move them out of the core library.
2011-06-09 19:27:36 +01:00
Dongsheng Cai
b1627a92e5
MDL-26105 Block settings should contains less options, and be more user friendly
...
AMOS BEGIN
MOV [page-blog-index, pagetype], [page-blog-index, blog]
MOV [page-blog-x, pagetype], [page-blog-x, blog]
MOV [page-tag-x, pagetype], [page-tag-x, tag]
MOV [page-course-view-weeks, pagetype], [page-course-view-weeks, format_weeks]
MOV [page-course-view-weeks-x, pagetype], [page-course-view-weeks-x, format_weeks]
MOV [page-course-view-topics, pagetype], [page-course-view-topics, format_topics]
MOV [page-course-view-topics-x, pagetype], [page-course-view-topics-x, format_topics]
AMOS END
2011-06-09 13:51:14 +08:00
Tim Hunt
af2f98ee39
MDL-27747 Imporove API for getting the standard fraction choices.
...
This includes moving the None option to the top, which is slightly better for usability.
2011-06-07 13:53:29 +01:00
Tim Hunt
612106b3a4
MDL-20636 fix URL handling for previews to always use Moodle URL.
...
Also, make the preview window big enough. #367
2011-05-27 11:49:23 +01:00
Tim Hunt
c014b989ba
MDL-27649 Convert the calculated question types to use the new variants mechanism.
2011-05-26 21:53:47 +01:00
Tim Hunt
afe24f850b
MDL-20636 Rename questiontype.php to questiontypebase.php. Also some conde-checker issues.
2011-05-17 16:46:57 +01:00