David Woloszyn
4807a4dd5f
MDL-43056 tool_uploadcourse: Add capability to upload courses from file
...
An entrypoint capability has been added that allows accessing the
upload tool. Further relevant capability checks are then performed
depending on the action being taken during the upload process.
Co-authored-by: Marina Glancy <marina@moodle.com >
2024-01-31 11:29:33 +11:00
Ilya Tregubov
b70c7b141f
MDL-43820 enrol_self: Override find_instance
...
This one is bit tricky. find_instance will find first available since
results are not unique...
2023-10-26 14:27:05 +08:00
Paul Holden
57c4b58fd5
MDL-68712 enrol_self: improve detection/re-use of group enrolment keys.
2023-09-20 13:30:59 +01:00
Ilya Tregubov
5dc60d9f94
MDL-78855 tool_uploadcourse: Create instance only if plugin supports it
2023-08-29 11:14:04 +08:00
Luca Bösch
d19685ba69
MDL-77156 enrol_self: deprecated trim() of null in PHP 8.1
2023-02-10 18:20:08 +01:00
Amaia Anabitarte
31d84aaa2c
MDL-75441 mod_forum: Show add new post button to guest users
2022-12-13 18:49:53 +01:00
sam marshall
5e72715e4f
MDL-71099 Lib: Move new user_fields class from core to core_user
...
This class would belong more appropriately within the 'user' API
(core_user) instead of within the 'core' API, since it is
directly related to user data.
Since the class has only just been added to Moodle, now is a good
time to move it.
2021-03-25 13:47:23 +00:00
sam marshall
558cc1b85e
MDL-45242 Lib: Replace calls to deprecated functions
...
In all cases changes have been kept to a minimum while not making
the code completely horrible. For example, there are many instances
where it would probably be better to rewrite a query entirely, but
I have not done that (in order to reduce the risk of changes).
2021-03-10 10:57:10 +00:00
Peter Burnett
37c99bd07e
MDL-45849 enrol_self: Added self enrol capability
2020-07-10 11:52:10 +10:00
Anthony Forth
bcc3a463f6
MDL-67945 enrol: missing $DB in edit_instance_form
2020-02-26 16:22:36 +01:00
David Mudrák
0845825659
MDL-66712 enrol: Fix the reported days of inactivity on unenrolment
...
There were two problems here. Firstly, the $days was not correctly
calculated due to missing parentheses. Secondly, the sentence had
grammar issues.
2020-01-16 13:35:01 +01:00
Willian Mano
7a27c90102
MDL-62485 enrol: Success message after enroll/unenroll user in a course
2019-10-24 13:43:27 -03:00
Amaia Anabitarte
9c7b226579
MDL-55778 enrol_self: New string for 'Notify before..' options
...
AMOS BEGIN
CPY [expirynotifyall,core_enrol],[expirynotifyall,enrol_self]
CPY [expirynotifyenroller,core_enrol],[expirynotifyenroller,enrol_self]
AMOS END
2018-07-24 18:41:00 +02:00
Farhan Karmali
fe5b5be1dd
MDL-61208 enrol: Standard enrol plugins should use tasks instead of cron
2018-04-10 09:16:17 +05:30
Farhan Karmali
ebaf979c94
MDL-60811 enrol_self: Add bulk action for self enrollment on users page
2018-04-03 19:29:44 +05:30
Farhan Karmali
4fd0bdb2b7
MDL-61236 enrol: Course welcome message to be sent from correct contact
2018-02-11 20:45:49 +05:30
Jun Pataleta
4047fccba7
MDL-59811 enrol: Move get_user_enrolment_actions logic to parent class
...
* These duplicated implementations can be simplified where the logic
can be moved to enrol_plugin::get_user_enrolment_actions() method
itself.
2017-10-09 10:29:02 +08:00
Jun Pataleta
00aba5ec9a
MDL-59756 enrol: Swap positions of edit and unenrol actions
2017-08-11 10:18:30 +08:00
Luca Bösch
da15576180
MDL-58928 enrol: delete and edit icon alt attribute
2017-07-31 17:31:07 +02:00
Jun Pataleta
fd0a43be1b
MDL-59369 enrol: Introduce data-action attribute for enrol action links
2017-07-26 09:44:33 +08:00
Damyon Wiese
ad056aa267
MDL-40759 icons: Better mapping of some icons
2017-03-17 15:52:18 +08:00
Damyon Wiese
2b931458ad
MDL-40759 plugins: Add font icon mapping to all plugins
2017-03-17 15:51:29 +08:00
Marina Glancy
92253b15b7
MDL-40838 backup: restore enrolment methods without users
2017-02-20 12:08:35 +08:00
Marina Glancy
bbf401bec6
MDL-57782 enrol_self: fix check when email needs to be sent
...
Thanks to Leandro for providing a fix
2017-01-27 14:24:10 +08:00
Simey Lameze
0ab8b33754
MDL-29110 enrol_self: improve send course welcome message setting
...
This commit change send course welcome message to a drop-down that now supports sending emails from:
- Course contact
- Enrolment key holder
- No reply address
Also moves part of the logic of handling send welcome email from to a new method get_welcome_email_contact() and unit test for this new method.
2016-10-26 09:38:09 +08:00
Damyon Wiese
f758951565
MDL-48362 enrol: Convert guest to standard enrolment ui
...
Also - provide automatic course navigation links when using the standard ui.
2016-02-29 14:33:06 +08:00
Damyon Wiese
51c736f037
MDL-48362 enrol: Auto generate the edit action icons when using the new ui
2016-02-29 14:00:31 +08:00
Damyon Wiese
60010fd614
MDL-48362 enrol: Use a standard UI and validation for enrolment plugins
...
Convert core enrolment plugins to use standard editing ui.
2016-02-29 12:31:41 +08:00
Mark Nelson
d950ba1b3c
MDL-52017 enrol_self: always check password before re-enabling
2015-12-03 19:26:22 +08:00
Bence Laky
933f0d966e
MDL-51578 enrol_self: Improved error message on late/early enrolments
2015-10-06 09:16:18 +01:00
David Monllao
012d14e892
MDL-50332 enrol_self: Setting form url for guests
...
Credit to Andrew Nicols.
2015-09-23 09:52:04 +08:00
David Monllao
8f338081cc
MDL-50332 enrol_self: Formatting unavailable instances error messages
...
Many thanks to Andrew Nicols as this patch is based on his
proposal. Thanks Andrew.
2015-09-21 15:39:42 +08:00
Mark Nelson
9c54a0abad
MDL-49232 enrol_self: display continue button
2015-04-29 18:04:28 -07:00
LE PERF Stephane
ab2fa7a768
MDL-49677 enrol_self: allow fullname and email in the welcome message
2015-04-02 09:42:20 +02:00
John Okely
cf6d62fc3f
MDL-47761 enrol: Show more detail for self-enrolment errors
...
Thanks to Mirko Otto for the solution
2015-01-06 10:19:18 +08:00
David Monllao
bc92aace89
MDL-22309 enrol_self: Fixing get_role_users usage
2014-11-27 11:32:58 +08:00
Daniel Neis Araujo
b5a289c4e8
MDL-46509 enrol: Require 'enrol/PLUGIN:config' capabilities to show/hide enrollment instances
2014-08-21 19:01:57 -03:00
Marina Glancy
d92e23cfe6
MDL-46338 enrol_self: Icon should indicate enrolment availability
2014-07-29 09:50:22 +08:00
Daniel Neis
ee9e079ddd
MDL-35864 Require 'enrol/PLUGIN:config' capabilities to delete enrol instances
2014-06-20 13:08:18 -03:00
Mark Nelson
f1f4f4fd7b
MDL-40909 core_enrol: removed 'enrol' add_to_log calls
...
Before each of these calls a call to enrol_user() is made, which
triggers the event 'user_enrolment_created'. Nothing more is needed.
2014-01-27 19:52:55 -08:00
sam marshall
3ef7279f26
MDL-42084 Core: Change set_time_limit to core_php_time_limit::raise everywhere
...
Exceptions (places where set_time_limit is still left) are:
Third-party libraries:
ADODB
PHPMailer
Moodle core:
PHPUnit - not relevant (CLI mode)
2013-11-06 16:40:01 +00:00
Rajesh Taneja
735c3a7b4f
MDL-42536 enrol_self: Added groups/lib.php required file
2013-10-25 11:09:43 +08:00
Rajesh Taneja
2b503e40f2
MDL-31560 Messages: Deprecated generate_email_supportuser
...
generate_email_supportuser was not creating user which can
be used by messaging system. core_user::get_support_user()
should be used to get support_user record.
2013-09-13 16:13:26 +08:00
Damyon Wiese
74df2951d1
Revert "MDL-39876 Change get_record('course') calls to get_course"
...
This reverts commit ab7632b74c .
2013-08-21 13:42:30 +08:00
sam marshall
ab7632b74c
MDL-39876 Change get_record('course') calls to get_course
2013-08-15 11:31:20 +01:00
Rajesh Taneja
be9bf94e4a
MDL-40126 Enrolments: Implemented two webservices to get enrolment instance info
...
1. core_enrol_get_course_enrolment_methods() which returns all enrolment method instances
which implement get_enrol_info()
2. enrol_self_get_instance_info() will return information about self enrolment instance.
2013-07-29 15:07:37 +08:00
Rajesh Taneja
cc1b501595
MDL-40127 Enrolments: Added status to instance info and removed displaying of enrolment form with notice
...
get_enrol_info will return status of enrolment instance, to notify webservice if enrolment is possible or not
If enrolment is not possible then don't show enrolment form
show_enrolme_link will use can_self_enrol to varify if enrolment link should be shown or not.
2013-07-02 14:35:33 +08:00
Rajesh Taneja
85d1c53af4
MDL-40127 Enrolments: Abstracted self_enrolment code so as to be used by webservices
2013-07-02 14:35:33 +08:00
Petr Škoda
8ef3d51470
MDL-39292 use consistent iconsmall in enrol instances UI
2013-04-27 12:28:54 +02:00
Frederic Massart
982f4bc40e
MDL-38301 usability: Fixed wrong icon size
2013-02-15 10:04:57 +08:00