Tim Hunt
9c75f8dc44
MDL-49366 questions: avoid PHP notices from bad pluginfile URLs
2015-03-05 12:18:20 +00:00
Tim Hunt
1b49f31df2
MDL-48259 questionlib.php: remove functions deprecated in Moodle 2.6
2014-11-17 15:55:22 +00:00
Tim Hunt
4c3c1b5169
MDL-48259 questionlib.php: remove functions deprecated in Moodle 2.1
2014-11-17 15:19:56 +00:00
Marina Glancy
e0c22222b6
MDL-45336 questionbank: use core strings instead of quiz
...
AMOS BEGIN
CPY [categories,mod_quiz],[categories,question]
CPY [unusedcategorydeleted,mod_quiz],[unusedcategorydeleted,question]
CPY [export,mod_quiz],[export,core_question]
CPY [import,mod_quiz],[import,core_question]
AMOS END
2014-09-24 01:22:59 +02:00
Marina Glancy
9422f6ee42
MDL-46163 question/quiz: fix elements ids and their labels
2014-07-03 10:13:00 +01:00
Eric Merrill
c1d0d73718
MDL-20154 questions: question_delete_question should not check perms
...
By Moodle convention, library functions should not implement permission
checks, they are to be handled by the invoking code.
2014-06-05 09:56:35 -04:00
Mark Nelson
cc033d48b5
MDL-44316 core_tag: changed the API to accept a contextid and component
2014-03-22 13:50:08 -07:00
Tim Hunt
8011be189e
MDL-33653 fix preview links on calc qtype edit forms.
...
Also, refactor how we render preview icons, to eliminate duplication.
2014-03-07 19:46:56 +00:00
Tim Hunt
ccba5b8805
MDL-43749 normalise quiz database structure.
...
The sequence of questions that made up a quiz used to be stored as a
comma-separated list in quiz.questions. Now the same information is
stored in the rows in the quiz_slots table. This is not just 'better' in
a database design sense, but it allows for the future changes we will
need as we enhance the quiz in the MDL-40987 epic.
Having changed the database structure, all the rest of the code needs to
be changed to account for it, and that is done here.
Note that there are not many unit tests for the changed bit. That is
because as part of MDL-40987 we will be changing the code further, and
we will add unit tests then.
2014-03-02 10:00:40 +01:00
Dan Poltawski
b07ef13be2
MDL-41885 modules now declare use of question bank
...
* FEATURE_USES_QUESTION_BANK is now a module_supports flag which declares
that an activity uses the question engine.
* question_module_uses_questions can be used to determine if a module
uses the question bank.
2013-09-26 09:49:34 +08:00
Petr Škoda
2f1e464a88
MDL-40438 migrate all collatorlib:: and textlib:: uses
2013-08-06 21:04:35 +02:00
Tim Hunt
1cca4e4327
MDL-35053 question files outside attempts. Fix back-compatibility.
2013-07-31 18:00:52 +01:00
Tim Hunt
68d2f6a008
MDL-35053 questions: question files outside an attempt.
...
Now update all the places that display files outside attempts to use the
new API.
2013-07-26 13:10:11 +01:00
Tim Hunt
181393aad2
MDL-35053 questions: question files outside an attempt.
...
Sometimes it is necssary to display parts of a question outside of an
attempt. For example for staff review. When displaying the question, we
need to handle images in the question text. In the past there was a
mechanism for this that could only cope with the question text.
This commit introduces a new method that can handle displaying any
part of the question content.
This commit intentionally does not upgrade the parts of the system that
use the mecanism. That is so that this commit can be used to demonstrate
that backwards-compatibility works. The next commit will upgrade the
callers.
2013-07-26 13:10:08 +01:00
Petr Škoda
b0d1d941c9
MDL-40220 use new core_component::get_component_directory()
2013-07-16 22:42:37 +02:00
Petr Škoda
059e08ed92
MDL-40220 use new core_component::get_plugin_list_with_class()
2013-07-16 22:37:15 +02:00
Petr Škoda
bd3b3bba9f
MDL-40220 use new core_component::get_plugin_list()
2013-07-16 22:36:11 +02:00
Adrian Greeve
329846f198
MDL-40430 - Libraries: Deprecate print_context_name().
2013-07-09 16:11:55 +08:00
Rajesh Taneja
7f5b51c4e6
MDL-40404 Libraries: Deprecated get_parent_contextid()
2013-07-09 14:33:21 +08:00
Dan Poltawski
a3f92b2e0e
Revert "MDL-26511 Images in Cloze multichoice"
...
This reverts commit feec4f89417b13d87a464710b2479704cffbabdb.
2013-06-11 11:38:34 +08:00
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