Ilya Tregubov
b87c53b2bb
Merge branch 'MDL-79295-master' of https://github.com/jleyva/moodle
2024-02-06 11:15:48 +08:00
Juan Leyva
9c38e28826
MDL-79295 quiz: Return total unasnwered questions via summary WS
2024-01-26 10:31:07 +01:00
Juan Leyva
d54086f838
MDL-79295 quiz: Return state class for questions via WS
2024-01-26 10:31:07 +01:00
Juan Leyva
30598cf2a0
MDL-79295 quiz: Add proper WS support for sequential nav.
2024-01-26 10:24:16 +01:00
Dani Palou
d638bb10cb
MDL-80718 quiz: Apply overrides in mod_quiz_get_combined_review_options
2024-01-25 10:03:45 +01:00
Darren Cocco
0f5a9e7680
MDL-72493 mod_quiz: Use question cache when starting attempt.
...
Replaced custom loading of data and then question object
creation using internal question_bank functionality with
question_bank::load_question.
Removed the call $quizobj->load_questions as it is
redundant.
2023-07-11 13:47:50 +08:00
mkassaei
cc880cabf5
MDL-77564 Quiz display options: Hide or show the grade information
...
Allow settings to show Max marks and Marks, Max marks only, or hide the grade information completely.
2023-05-31 17:15:29 +01:00
Tim Hunt
6df55bf1f3
MDL-77656 quiz: fix web services to handle custom question numbers
2023-03-31 16:01:22 +01:00
Jun Pataleta
ce9f6db2ff
Merge branch 'MDL-76899' of https://github.com/timhunt/moodle
2023-01-24 23:19:43 +08:00
Andrew Nicols
a3cc26f8bb
MDL-76583 core: Update uses of external_* classes
2023-01-19 07:34:09 +08:00
Tim Hunt
2bb6c8b281
MDL-76899 quiz: bulk fix all array literals array() -> []
...
This was done with PHPStorm's automated tool. No manual editing
2023-01-16 17:12:45 +00:00
Tim Hunt
a9f8547599
MDL-76614 quiz: rename quiz => mod_quiz\quiz_settings
2023-01-06 14:35:54 +00:00
Tim Hunt
5682c8c70e
MDL-76614 quiz: move class quiz_attempt => mod_quiz\quiz_attempt
...
I thought about renaming the class to just plain attempt, but I
acutally think quiz_attempt makes it clearer what this is. Also
not changing the name massively reduces the pain for everyone
updating their code (including me right now!)
2023-01-06 14:35:51 +00:00
Tim Hunt
2ff112c688
MDL-76614 quiz: quiz_access_rule_base => mod_quiz\local\access_rule_base
2023-01-06 14:35:48 +00:00
Tim Hunt
f83181d397
MDL-76614 quiz: deprecate class moodle_quiz_exception
...
Code should just directly use moodle_execption.
Note, some of the existing uses (in web services) were passing a
literal message, not a language string identifier, but I decided
now was not the time to try to fix that.
2023-01-06 14:35:48 +00:00
Tim Hunt
b3d59e5ad8
MDL-76614 quiz: clean up class access_manager
2023-01-06 14:35:47 +00:00
Tim Hunt
fed4a7fbd4
MDL-76614 quiz: move quiz_access_manager -> mod_quiz\access_manager
2023-01-06 14:35:47 +00:00
Meirza
e33194755f
MDL-75914 webservice: Added fake URL to avoid debugging output.
...
Webservice doesn't need to set the page URL. Hence,
any function that requires a page URL will raise debugging output.
The patch fixes it by adding a fake URL for the webservice.
The patch also removed assertDebuggingCalled because it is no longer needed.
2022-12-21 16:30:21 +07:00
Tim Hunt
cefbf74d02
MDL-74923 quiz: move mod_quiz_display_options to classes folder
2022-12-13 16:24:57 +00:00
Laurent David
025e0297b6
MDL-75210 mod_quiz: fix sequential quiz access
...
* As a student I should only be able to access the next question or the current question
* The API should not show more than the current question
* Once the quiz is previewed we can see the question in any order (existing behaviour)
* Related to ticket MDL-71728
Co-authored-by: Rajneel Totaram <rjnlfj@yahoo.com >
Co-authored-by: Tim Hunt <t.j.hunt@open.ac.uk >
2022-08-18 08:07:38 +04:00
Tim Hunt
6c161f3b99
MDL-74760 activity web services: refactor duplicate code
2022-06-07 12:53:34 +01:00
Thong Bui
46b88325ed
MDL-52456 Quiz: notification message for students.
...
Notification message for students after questions have been manually graded.
2021-10-19 20:06:16 +07:00
Peter Dias
cd52b46e89
MDL-52206 quiz: Remove completionpass completion from quiz
...
AMOS BEGIN
MOV [completionpass,mod_quiz],[completionpassgrade,core_completion]
MOV [completionpassdesc,mod_quiz],[completionpassgrade_desc,core_completion]
MOV [completionpass_help,mod_quiz],[completionpassgrade_help,core_completion]
AMOS END
2021-10-04 19:44:03 +08:00
Huong Nguyen
af4fb733ee
MDL-71797 quiz: Improve the checks when fetching user's attempts
2021-09-07 09:04:23 +02:00
Juan Leyva
3018d40e88
MDL-71492 mod_quiz: Include missing gradepass in WebService
2021-05-05 14:44:16 +02:00
Huong Nguyen
5444f88e4f
MDL-70720 Quiz: Improve capability checks when fetching users' best grades
2021-05-04 17:23:11 +02:00
Juan Leyva
caddb8f175
MDL-69823 mod_quiz: Return question options via WS
2020-11-10 19:16:24 +01:00
Juan Leyva
ba2d9643e7
MDL-54956 quiz: Fix WS to support files submission
2020-09-22 18:03:23 +02:00
Juan Leyva
8bec429a98
MDL-54956 quiz: Return response files in attempts
2020-09-22 18:03:23 +02:00
Juan Leyva
dfd4881589
MDL-65026 course: Fix modules intro formatting in WS
...
The Web Service seems to be doing excessive text cleaning.
2019-09-16 13:04:26 +02:00
Juan Leyva
ee766461b4
MDL-65274 mod_quiz: Do not return a translated string
...
We should be returning proper error codes and the translated string can be part of the debug information.
2019-05-20 15:50:46 +02:00
Juan Leyva
904c37c6c8
MDL-63394 mod_quiz: Do not fail overdue if there is a grace period
2018-11-16 16:56:40 +01:00
Juan Leyva
01a79b4e86
MDL-60908 mod_quiz: Return question state only when configured
...
The question state should be returned following the quiz review options
settings.
2018-01-09 16:54:32 +08:00
Juan Leyva
bcd6249d53
MDL-58628 mod_quiz: Return missing fields in get_quizzes_by_courses
...
These fields must be returned always (even if the quiz is closed).
Those fields are required to display data to users that, for example,
finished a timed quiz.
2017-04-19 16:12:09 +02:00
Juan Leyva
9db43c7341
MDL-57629 webservice: Fix external functions phpdoc
...
Replace external_external_function_parameters with
external_function_parameters
2017-01-11 16:56:25 +01:00
Juan Leyva
c8743f62b4
MDL-55728 webservice: Return editor files in Web Services
2016-10-03 16:49:13 +01:00
Juan Leyva
74804b57a4
MDL-53870 mod_quiz: Return sequence and time information for questions
2016-09-28 09:25:19 +01:00
Juan Leyva
8a972ab377
MDL-53870 mod_quiz: New settings for quiz attempts in the mobile app
2016-09-28 09:25:18 +01:00
Dani Palou
33ef5cdcf9
MDL-54862 quiz: Return question blocked status in WS
2016-07-27 15:38:01 +02:00
Juan Leyva
7ef49bd393
MDL-54951 webservice: Return intro text files in modules
2016-07-04 09:24:28 +01:00
Juan Leyva
9be3072d33
MDL-53976 mod_quiz: Add missing parameter preflightdata in WS
...
External functions view_attempt and view_attempt_summary are missing
the parameter preflightdata
2016-05-02 12:07:15 +02:00
Juan Leyva
efca239e17
MDL-52767 mod_quiz: New Web Service get_quiz_required_qtypes
2016-03-23 00:57:07 +01:00
Juan Leyva
ff99efcd96
MDL-52767 mod_quiz: New Web Service get_attempt_access_information
2016-03-23 00:55:37 +01:00
Juan Leyva
a79a63619b
MDL-52767 mod_quiz: New Web Service get_quiz_access_information
2016-03-23 00:54:41 +01:00
Juan Leyva
48abca7996
MDL-53034 mod_quiz: New WS mod_quiz_get_quiz_feedback_for_grade
2016-03-18 09:56:31 +01:00
Juan Leyva
3e5c19a0ed
MDL-52888 mod_quiz: New Web Service mod_quiz_view_attempt_review
2016-03-18 09:50:06 +01:00
Juan Leyva
d9ef6ae0c2
MDL-52888 mod_quiz: New Web Service mod_quiz_view_attempt_summary
2016-03-18 09:49:29 +01:00
Juan Leyva
899983ee58
MDL-52888 mod_quiz: New Web Service mod_quiz_view_attempt
2016-03-18 09:27:43 +01:00
Juan Leyva
3589b6591a
MDL-52868 mod_quiz: New Web Service mod_quiz_get_attempt_review
2016-03-17 17:15:52 +01:00
Juan Leyva
98e6869088
MDL-52863 mod_quiz: New Web Service mod_quiz_process_attempt
2016-03-17 16:49:40 +01:00