Commit Graph

95 Commits

Author SHA1 Message Date
Andrew Nicols
097098735a Merge branch 'MDL-73060' of https://github.com/paulholden/moodle 2021-12-10 11:12:14 +08:00
Paul Holden
d8afa1b4e4 MDL-73060 webservice: fix logged config for first enabled protocol.
Resolves PHP notice from 1dfa86b4.
2021-12-09 10:41:49 +00:00
Ilya Tregubov
4de7faf7f1 Merge branch 'master_MDL-72553_qbank_quiz' of https://github.com/catalyst/moodle-MDL-70329 2021-12-08 09:58:00 +02:00
Matt Porritt
556e2f1aec MDL-72553 qbank_customfields: Add custom fields for question types
Custom fields can now be added to question types.
Site administrators can configure the custom fields and
filed types available. Teachers and question creators can
then use these fields for extra question metadata when
creating questions. Question creators can control if
the fields are displayed to students when they are
taking a quiz or not.
This features uses the core Moodle custom field API.

Co-Authored-By: Matt Porritt <mattp@catalyst-au.net>
Co-Authored-By: Safat Shahin <safatshahin@catalyst-au.net>
Co-Authored-By: Marc-Alexandre Ghaly <marc-alexandreghaly@catalyst-ca.net>
2021-12-07 18:32:41 +11:00
Sara Arjona
ecfded8d31 MDL-72112 plugininfo: Add new get_enabled_plugin method
Apart from adding the new get_enabled_plugin($pluginname) method to the
core_plugininfo\base class, and overwritting it for filter, a bug in
enable_plugin in filter, introduced in MDL-72720, has been fixed too.
2021-11-30 13:14:26 +01:00
Amaia Anabitarte
9b5367b306 MDL-72907 core_repository: Fix enable_plugin function 2021-11-16 09:20:56 +01:00
Sara Arjona
1dfa86b4b4 MDL-72720 webservice: Implement enable_plugin() method 2021-10-15 13:00:04 +02:00
Sara Arjona
96a16c14a0 MDL-72720 repository: Implement enable_plugin() method
This one was tricky because it works slightly different and requires
a repository instance will be created if it doesn't exist.
For now I've implemented the easiest approach because it's not
possible to create instances (some extra parameters should be added
to the method in order to support it).
2021-10-15 13:00:04 +02:00
Sara Arjona
bdab64dc61 MDL-72720 qtype: Implement enable_plugin() method 2021-10-15 13:00:04 +02:00
Sara Arjona
a22093dbcf MDL-72720 qbehaviour: Implement enable_plugin() method 2021-10-15 13:00:04 +02:00
Sara Arjona
5009021daf MDL-72720 qbank: Implement enable_plugin() method 2021-10-15 13:00:04 +02:00
Sara Arjona
14e492bebb MDL-72720 portfolio: Implement enable_plugin() method
This one was tricky because it works slightly different and requires
a portfolio instance will be created if it doesn't exist.
For now I've implemented the easiest approach but, in the future,
it might be improved adding also the "deleted" status to the
enable_plugin() method, to completely remove it (current
implementation only switch status from "Enable but hidden" to
"Enable and visible").
2021-10-15 13:00:04 +02:00
Sara Arjona
a7570bfcb6 MDL-72720 message: Implement enable_plugin() method 2021-10-15 13:00:04 +02:00
Sara Arjona
105be1edc1 MDL-72720 format: Implement enable_plugin() method 2021-10-15 13:00:04 +02:00
Sara Arjona
e76c7375e2 MDL-72720 filter: Implement enable_plugin() method 2021-10-15 13:00:04 +02:00
Sara Arjona
0543ea7f02 MDL-72720 media: Implement enable_plugin() method 2021-10-15 13:00:03 +02:00
Sara Arjona
98bee59968 MDL-72720 fileconverter+paygw: Implement enable_plugin() method 2021-10-15 13:00:03 +02:00
Sara Arjona
518b981350 MDL-72720 enrol: Implement enable_plugin() method 2021-10-15 13:00:03 +02:00
Sara Arjona
e8c60cff1f MDL-72720 editor: Implement enable_plugin() method 2021-10-15 13:00:03 +02:00
Sara Arjona
9a8f974a3a MDL-72720 mod: Implement enable_plugin() method 2021-10-15 13:00:03 +02:00
Sara Arjona
81556d883c MDL-72720 dataformat: Implement enable_plugin() method 2021-10-14 16:54:13 +02:00
Sara Arjona
87baf79723 MDL-72720 customfield: Implement enable_plugin() method 2021-10-14 16:54:13 +02:00
Sara Arjona
fc59c10860 MDL-72720 contenttype: Implement enable_plugin() method 2021-10-14 16:54:13 +02:00
Sara Arjona
9991ce2cce MDL-72720 block: Implement enable_plugin() method 2021-10-14 16:54:13 +02:00
Sara Arjona
c70519cc1d MDL-72720 availability: Implement enable_plugin() method 2021-10-14 16:54:13 +02:00
Sara Arjona
bbf3a2d987 MDL-72720 auth: Implement enable_plugin() method 2021-10-14 16:54:12 +02:00
Sara Arjona
6e693fbce0 MDL-72720 antivirus: Implement enable_plugin() method 2021-10-14 16:54:12 +02:00
Sara Arjona
cf54e29ddc MDL-72720 plugininfo: Add enable_plugin() method to base class 2021-10-14 16:54:12 +02:00
Safat Shahin
f9fc355ec7 MDL-71679 mod_quiz: Updates for new qbank api
This implementation will introduct changes to
the mod_quiz to implement the new qbank api
for view. Major changes are introduced in
the custom view and also all the legacy points
to the old qbank are changed to qbank plugins
where needed. It also deprecated and deletes
classes and scripts which were kept not to
break mod_quiz for the new api implementation.
2021-10-04 15:44:25 +11:00
Eloy Lafuente (stronk7)
103027b723 Merge branch 'MDL-72163-master' of git://github.com/andrewnicols/moodle 2021-08-24 20:12:13 +02:00
safatshahin
dfed4fd040 MDL-71516 core_question: Qbank api implementation
This commit implements the qbank api so that any plugin
can implement its own question bank. This api currently
works parallely with the moodle core classes and the
added qbank in the core, means the moment a plugin
is installed, that object is replaced with the object
from the plugin instead of core, which means the api
has flexibility till the plugins are integrated and the
plugins can be integrated in any order.

All the old classes are still there and not deprecated
as there is a different tracker for the changes to the
quiz and another tracker for class deprecation and
class renaming. Core question units tests are pointing
to the new api structure but the classes are pointing
to the location related to the plugin availability.

Co-Authored-By: Luca Bösch <luca.boesch@bfh.ch>
Co-Authored-By: Guillermo Gomez Arias <guillermogomez@catalyst-au.net>

one more array fix
2021-08-17 18:57:31 +10:00
safatshahin
351176bb71 MDL-71516 core_question: Create new plugin type - qbank
This commit implements the qbank plugin type which
includes the boilerplate for the qbank plugin, the
qbank plugin management admin page and required core
code addition.
2021-08-16 09:59:11 +10:00
Andrew Nicols
d55aeee10c MDL-72163 admin: Create interface for settings with a url 2021-07-16 15:20:30 +08:00
Andrew Nicols
78c96c6f44 MDL-72163 admin: Plugins overview page should link to categories 2021-07-16 13:49:11 +08:00
Brendan Heywood
6b48a24cc6 MDL-70766 auth: Add all auth plugin changes to configlog 2021-02-11 11:05:25 +11:00
Shamim Rezaie
2d7feb7583 MDL-69166 core_payment: Renamed plugintype name from pg to paygw 2020-10-27 15:34:55 +11:00
Shamim Rezaie
e52362fc5c MDL-69166 core_payment: basic gateway skeleton 2020-10-27 08:37:08 +11:00
Brendan Heywood
155b0da5a5 MDL-68292 core: Remove sesskey leakage on module pages 2020-10-12 17:10:03 +11:00
Sara Arjona
58f85a6c6e MDL-67795 contentbank: clean all the content when uninstalling plugin 2020-04-23 13:09:40 +02:00
Amaia Anabitarte
33b8ca26f9 MDL-67786 core_contentbank: New content bank contenttype plugin type
Co-authored by: Ferran Recio <ferran@moodle.com>
2020-04-15 23:45:08 +02:00
Sara Arjona
08fda3e0f8 MDL-67063 h5p: new h5plib plugintype for supporting multi coreAPI
A new plugintype has been created for having more than one installed
third-party H5P libraries. Existing libraries have been moved from
lib/h5p to the new h5plib_v124 plugin.
2020-03-11 08:46:16 +01:00
Peter Burnett
72aac06304 MDL-59562 core: updated type hint of new function 2020-01-16 13:05:30 +10:00
[Peter Burnett]
147a895ad0 MDL-59562 upgrade: Plugins can declare supported moodle versions
* Plugins can now explicitly declare supported and incompatible Moodle
  versions in version.php
  - $plugin->supported[37,39];
    supported takes an array of ascending numbers, that correspond to a
    range of branch numbers of supported versions, inclusive. Moodle
    versions that are outside of this range will produce a message
    notifying at install time, but will allow for installation.

  - $plugin->incompatible = 36;
    incompatible takes a single int corresponding to the first incompatible
    branch. Any Moodle versions including and below this will be prevented
    from installing the plugin, and a message will be given when
    attempting installation.
2020-01-15 14:38:27 +10:00
David Monllaó
aa5b705607 MDL-66004 mlbackend_python: Package installed on a separate server 2019-10-02 08:41:14 +08:00
Mathew May
e00f1c663c MDL-64506 phpunit: Update unit tests to use classic 2019-04-03 19:34:20 +08:00
Marina Glancy
bbf60b1412 MDL-57898 core_customfield: coding style fixes 2019-01-18 14:28:24 +01:00
Toni Barberà Melià
1eeb465a0c MDL-57898 core_customfield: Custom fields API
This commit is part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
2019-01-18 09:02:30 +01:00
David Monllao
ed12ba6ba8 MDL-60520 analytics: Per-model ml backend 2018-10-22 13:58:33 +02:00
Damyon Wiese
fe955c5645 Merge branch 'wip-MDL-45500-master' of git://github.com/marinaglancy/moodle 2017-12-11 12:56:18 +08:00
Marina Glancy
777720c833 MDL-45500 gradingform: allow plugin uninstall 2017-11-28 12:27:52 +08:00