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
Sara Arjona
2a708f985a
MDL-80461 courseformat: Use choicedropdown for the format setting
...
In MDL-79985 a new form element was created to display a new generic
dropdown with extra information like a description or an icon on each
option.
This commits replaces the select for the course format form element in
the Course settings page with this new component.
2024-01-19 09:37:42 +01: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
Paul Holden
833e818f02
MDL-79455 tool_uploadcourse: clean course data fields individually.
2023-10-04 01:24:20 +00:00
Paul Holden
ef67f43c67
MDL-79455 tool_uploadcourse: safe preview of uploaded course data.
2023-10-04 01:24:20 +00: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
0645319e62
MDL-72309 course: make category a required field in forms.
...
Course category fields were changed en masse from simple select
elements to autocompletes in 93d72205 , but weren't defined as
required fields. This could lead to exceptions and/or unexpected
behaviour if their values were cleared prior to form submission.
2021-10-04 08:11:32 +01: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
Julien Boulen
93d7220587
MDL-67278 course: Use autocomplete widget for course category selector
2020-09-02 15:30:34 +02: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
Davo Smith
223fc57d27
MDL-64552 admin: use hideIf instead of disabledIf (where appropriate)
2019-01-11 11:27:33 +00:00
Marina Glancy
442f12f81a
MDL-62742 core: rename coursecat->core_course_category
...
Also rename course_in_list -> core_course_list_element
Deprecate class coursecat_sortable_records
2018-08-28 11:36:23 +02:00
Marina Glancy
a589b992f8
MDL-59259 tool_uploadcourse: apply course format options
2018-06-28 16:37:27 +08:00
Zig Tan
de33cd0cab
MDL-61892 admin/tools: Implement null privacy providers
2018-04-20 11:41:20 +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
Stephen Bourget
57422d7158
MDL-43648 course: Allow start /end dates to have times
2017-12-14 19:48:31 -05:00
Alexander Bias
33a3ec7c93
MDL-58388 course: Add admin control for course end date default
2017-10-09 14:12:52 +02:00
Dan Poltawski
25a425d709
Merge branch 'wip-MDL-59262-master-2' of git://github.com/marinaglancy/moodle
2017-07-10 14:31:06 +01:00
Marina Glancy
b1ed151f4d
MDL-59262 tool_uploadcourse: allow to set numsections
2017-07-04 10:27:39 +08:00
Marina Glancy
ef5fdb3709
MDL-46495 tool_uploadcourse: set enablecompletion to default
2017-06-30 10:25:29 +08:00
Julien Boulen
ba17a2c3f8
MDL-58070 language: reword visible core string
2017-03-22 11:11:47 +01: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
Dan Poltawski
e6f5a4b268
Revert "Merge branch 'MDL-43127-master-fixup' of https://github.com/FMCorz/moodle "
...
This reverts commit 7bd780835b , reversing
changes made to 1e7e4d5f01 .
2014-11-27 09:33:48 +00:00
Frederic Massart
18edf3a325
MDL-43127 tool_uploadcourse: Empty enrolment method is acceptable
...
Without the patch a course would not be created if it contained
an enrolment method column with an empty value. e.g.:
shortname,fullname,category,enrolment_1,enrolment_1_disable
courserestored,Course restored,1,,
courserestored2,Course restored 2,manual,1
2014-11-26 17:11:35 +08: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
Sam Hemelryk
a59a423926
Merge branch 'MDL-42084-master' of git://github.com/sammarshallou/moodle
2013-12-03 11:12:34 +13:00
Jerome Mouneyrac
c8a661098e
MDL-40728 courseupload: add missing help icons
2013-11-13 16:34:43 +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
Damyon Wiese
5cc2c6662d
Merge branch 'MDL-41347-master' of git://github.com/FMCorz/moodle
2013-10-09 12:03:54 +08:00
Frederic Massart
97376662df
MDL-41230 tool_uploadcourse: Prevent max_execution_time issues
2013-10-03 11:44:54 +08:00
Frederic Massart
7bfc9edd9d
MDL-41347 tool_uploadcourse: Invalid restore value handled
2013-10-03 11:22:53 +08:00
Sam Hemelryk
cc76e82d58
Merge branch 'MDL-41210-master' of git://github.com/FMCorz/moodle
2013-08-21 10:21:04 +12:00
Sam Hemelryk
0eb65affd2
Merge branch 'MDL-41209-master' of git://github.com/FMCorz/moodle
2013-08-21 10:09:08 +12:00
Frederic Massart
d90b2eb949
MDL-41210 tool_uploadcourse: Fixed restore from same backup file
2013-08-15 12:17:54 +08:00