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
bf7ff76bcd
MDL-43820 enrol: Add method to find plugin enrol instance
...
When upload courses we need to match instance with provided data.
2023-10-26 14:27:02 +08:00
Ilya Tregubov
5dc60d9f94
MDL-78855 tool_uploadcourse: Create instance only if plugin supports it
2023-08-29 11:14:04 +08:00
Paul Holden
aa4ae8f376
MDL-78742 tool_uploadcourse: configure show activity dates value.
2023-07-20 16:28:36 +01:00
Ilya Tregubov
fb4304b075
MDL-73839 tool_uploadcourse: Enable cohort enrolment for course upload.
2023-06-30 11:57:49 +08:00
Ilya Tregubov
491a784813
MDL-73839 tool_uploadcourse: Proper enrol instance updates.
...
We should use update_instance() method instead of direct query.
Fixed validation role method to validate roleids and role names.
Fiexed bug in unit test - course creator role shouldn't be assigned for
self enrolment method.
2023-06-30 11:57:48 +08:00
Ilya Tregubov
82e3a9ce40
MDL-73981 tool_uploadcourse: Validate enrolment role from csv.
2022-05-05 07:38:47 +06:00
Paul Holden
23765039d4
MDL-69816 tool_uploadcourse: configure course content download value.
2021-01-08 18:43:49 +00:00
Ferran Recio
b8e1eec4c7
MDL-69378 tool_uploadcourse: fix enrolment methods uploads
2020-11-03 12:34:28 +01:00
Paul Holden
b9a09480b2
MDL-48391 tool_uploadcourse: access checks for configuring enrolments.
2020-07-22 17:52:24 +01:00
Paul Holden
d62fc08ed9
MDL-66135 tool_uploadcourse: support custom course fields.
2020-05-01 00:10:15 +01:00
Paul Holden
714343c06a
MDL-66024 tool_uploadcourse: validate shortname/fullname field length.
2019-12-05 07:47:07 +00:00
Luca Bösch
2e7f4fcefd
MDL-67210 tool_uploadcourse: Allow only 0 and 1 for visible value.
2019-11-24 18:29:47 +01:00
Luca Bösch
d4beb21162
MDL-63268 tool_uploadcourse: Keep source course section number.
2019-07-02 19:44:22 +02:00
Marina Glancy
a589b992f8
MDL-59259 tool_uploadcourse: apply course format options
2018-06-28 16:37:27 +08:00
Matteo Scaramuccia
ef844148a9
MDL-60923 backup: Added $CFG->backuptempdir
...
The new setting will allow to host the temporary backup files
into a specific target directory. Defaults to '$CFG->tempdir/backup'.
Calling make_backup_temp_directory() checks that the required sub-directory
will be properly created under the new target directory.
2018-04-16 23:50:28 +02:00
Davo Smith
1433a07881
MDL-52811 course: prevent setting of 'lang' without permission
2018-02-01 17:07:12 +00:00
Marina Glancy
b1ed151f4d
MDL-59262 tool_uploadcourse: allow to set numsections
2017-07-04 10:27:39 +08:00
David Monllao
8643c576c7
MDL-22078 course: Complete proposed patch
...
- New site setting to define the default course duration (used to set
the default end date for some course formats)
- End date setting out of restore
- Fix tool_uploadcourse
- Other fixes here and there
2016-10-05 12:31:05 +08:00
Daniel Neis Araujo
fbcdb0d710
MDL-22078 course: add end date
2016-10-03 09:51:36 +08:00
David Monllao
f258a958a4
MDL-55804 tool_uploadcourse: strftime only to user input
...
Default value already comes as a timestamp.
2016-09-27 08:11:56 +08:00
Eloy Lafuente (stronk7)
07a069f1c0
MDL-50063 unittests: Remove some unnecesary gc_collect_cycles()
...
Now backup and restore operations free logger resources calling
to the destroy() method. This commit ensures:
1) That gc_collect_cycles() is not used anymore in backup-related tests.
2) That all backup and restore controllers in test do always call
to the detroy() method.
3) Some unset() calls, needed to make gc_collect_cycles() are not used
anymore.
2016-05-13 02:50:45 +02:00
Marina Glancy
54f63cd11b
MDL-50851 tool_uploadcourse: allow to set tags
2016-01-10 15:25:48 +08:00
Dan Poltawski
853b6cff9b
Revert "Merge branch 'MDL-43127-master' of git://github.com/FMCorz/moodle"
...
This reverts commit 4e75dd78e6 , reversing
changes made to f376c2ffd7 .
2014-11-27 09:33:52 +00:00
Frederic Massart
61380ed2a2
MDL-43127 tool_uploadcourse: Add support for more enrolment methods
2014-11-25 11:00:56 +08:00
John Okely
bb8d6e1a81
MDL-43274 Course: Remove ability to delete logs on a course during reset
2014-06-16 09:10:05 +08:00
Frederic Massart
7bfc9edd9d
MDL-41347 tool_uploadcourse: Invalid restore value handled
2013-10-03 11:22:53 +08:00
Frederic Massart
0e8f56103c
MDL-40737 tool_uploadcourse: Prevent update of frontpage
2013-08-05 15:23:22 +08:00
Petr Škoda
c25a5adb37
MDL-40898 try to hack around the sloppy open file handlers in backup/restore code
2013-07-28 13:29:39 +02:00
Frederic Massart
a1af15de03
MDL-13114 tool_uploadcourse: Removing summary from mandatory fields
2013-07-15 10:02:56 +08:00
Frederic Massart
3f57c87e1d
MDL-13114 tool_uploadcourse: Clean up
2013-07-15 10:02:55 +08:00
Frederic Massart
1e3e4efdb2
MDL-13114 tool_uploadcourse: Web UI uses the new classes
2013-07-15 10:02:55 +08:00
Frederic Massart
e0164eb3c6
MDL-13114 tool_uploadcourse: Use autoload and clean require_once
2013-07-15 10:02:55 +08:00
Frederic Massart
f54c49ccf0
MDL-13114 tool_uploadcourse: ID number errors handling
2013-07-15 10:02:55 +08:00
Frederic Massart
96aaf65481
MDL-13114 tool_uploadcourse: Renaming OUTCOME to DO
2013-07-15 10:02:54 +08:00
Frederic Massart
5b2f7718f0
MDL-13114 tool_uploadcourse: Introducing output tracker
2013-07-15 10:02:54 +08:00
Frederic Massart
8383903fcc
MDL-13114 tool_uploadcourse: Ensure category is properly resolved
2013-07-15 10:02:54 +08:00
Frederic Massart
1d1898ac01
MDL-13114 tool_uploadcourse: Improving the error reporting
2013-07-15 10:02:54 +08:00
Frederic Massart
9a7cd639b4
MDL-13114 tool_uploadcourse: Classes for course importation
2013-07-15 10:02:54 +08:00