Commit Graph

112 Commits

Author SHA1 Message Date
Safat
9a060a6d8d MDL-77576 communication_matrix: Create Matrix plugin
This commit will implement a matrix communication plugin
to integrate matrix services with core communication.

Originally implemented as MDL-76701, MDL-76702, MDL-77357,
MDL-76705, MDL-77473 and  MDL-76708.

Co-Authored-By: Stevani Andolo <stevani.andolo@moodle.com>
Co-Authored-By: David Woloszyn <david.woloszyn@moodle.com>
Co-Authored-By: Safat Shahin <safat.shahin@moodle.com>
2023-05-11 13:35:16 +10:00
Huong Nguyen
ec5663f1a4 MDL-77576 core: Register a new communication plugin-type
A new communication plugin type added to core to implement
the communication provider features.

Original implemented as MDL-76699

Co-Authored-By: Huong Nguyen <huongnv13@gmail.com>
2023-05-05 14:41:30 +10:00
Marina Glancy
8fc1486d36 MDL-77164 various: fix incorrect phpdocs 2023-04-13 11:35:06 +01:00
Andrew Nicols
6aba049a64 MDL-76867 core_admin: Migrate media plugin management to dynamic table 2023-03-14 08:44:15 +08:00
Andrew Nicols
6d978dd35a MDL-76867 core_admin: Add support for editor sorting via ajax 2023-03-14 08:44:15 +08:00
Andrew Nicols
fdb1df2bfd MDL-76867 core: Add plugintype_supports_disabling to plugininfo 2023-03-14 08:34:42 +08:00
Andrew Nicols
6809289cf4 MDL-76867 core: Plugintype coding style fixes 2023-03-14 08:34:42 +08:00
Jun Pataleta
675dadaf55 Merge branch 'MDL-77430' of https://github.com/stronk7/moodle 2023-03-01 23:59:40 +08:00
Eloy Lafuente (stronk7)
d2c721b9e0 MDL-77430 plugininfo: php81 deprecation warnings on missing plugins
Whenever some plugin is missing from disk but installed, the plugins
page (and the upgrade) shows them as "missing from disk". Still, the
code tries to do things with their directory that, now, is null.

That was silently defaulting to '' in previous php versions, but
php81 emits a deprecated warning. So we have to check for them.
2023-02-28 11:34:21 +01:00
Andrew Nicols
ce7c207203 MDL-77248 mod_bigbluebuttonbn: Set dpa accepted when creating activities
This only applies when creating activities using the test data
generator.
2023-02-28 12:04:51 +08:00
Andrew Nicols
e6fe30187f MDL-77248 core: Move pre_enable_plugin_actions callback to enable_plugin
Note: The original callback was incorrectly using the $PAGE output,
which cannot be relied upon in this callback. The best we can do here is
to add a notification to explain the situation.
2023-02-28 12:04:50 +08:00
Andrew Nicols
6a5512c999 MDL-77007 admin: Remove deprecated auth_config.php usage
This was deprecated in Moodle 3.3 and should now be removed.
2023-01-25 14:13:59 +08:00
Marina Glancy
b1c97381b4 MDL-76356 various: avoid implicit conversion to int
PHP before version 8.1 automatically converted to int if the function
parameter (or array key) is expected to be int. PHP 8.1 shows notice in
this case
2023-01-10 15:27:11 +01:00
Eloy Lafuente (stronk7)
df227f3819 MDL-76052 webservice_xmlrpc: Remove it completely from core
Normal removal procedure:
  - Remove the plugin completely from core.
  - Document it in the webservices upgrade.txt file.
  - Add a core upgrade step to proceed to remove any configuration
    if the plugin has not been re-installed manually.

Plus:
  - Remove a few remaining uses in the hub/sites registration scripts,
    that were moved from xmlrpc to hand.made rest calls by MDL-31436
    (Moodle 3.4.1 and up) and never removed then.
  - Remove the php-xmlrpc extension as a recommendation in composer.
  - Remove "xmlrpc" from various comments, trivial cleanup.

Note:
  - While working on this MDL-76078 has been created about to
    fix a serious design problem detected (it does not affect
    functionality). That's out from this issue scope.
2022-11-04 16:49:52 +01:00
Paul Holden
473ac1285e MDL-73726 dataformat: obey sort order when returning enabled plugins. 2022-06-06 09:32:36 +01:00
Marc-Alexandre Ghaly
6dc1084c47 MDL-71636 qbank_columnsortorder: Add a columnsortorder settings page
This implementation will introduce a feature "columnsortorder"
which will add the column sort order feature in an external page.
Having this feature will give users the flexibility of sorting plugin
columns in the question bank view.
2022-03-02 09:08:50 +00:00
Sara Arjona
995b457dbf MDL-73910 repository: Override get_enabled_plugin() method
The get_enabled_plugin method in repository plugininfo needs to
be overriden from base because current implementation is ignoring
the visible column in the "repository" table.
2022-02-21 09:24:51 +01:00
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