Commit graph

61 commits

Author SHA1 Message Date
Sara Arjona
9390fc5829 MDL-61265 enrol: Add default numsections for external db 2018-03-16 11:32:09 +01:00
Luca Bösch
c936af395e MDL-59070 enrol_database: Take enablecompletion from template 2018-03-08 17:24:39 +01:00
Farhan Karmali
19f0685069 MDL-61081 enrol: Start and end date for courses created by external db
Course created by external db enrolment plugin should have start date as current date
and end date is todays date + default course duration
2018-01-12 09:57:22 +01:00
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
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
Marina Glancy
89b909f6de MDL-57769 course: prepare to remove numsections option 2017-03-30 08:26:12 +08:00
Adam Olley
6c9b6685de MDL-52334 enrol_database: Add missing filter to user_enrolment lookup
Without the user filter, the left join to the user enrolment table
results in a much larger set of data being returned than before
MDL-28420. Which makes login time for users in many busy courses much
worse than before (3x worse on average, observed upto 40x).
2015-12-09 09:25:09 +10:30
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
Dan Poltawski
12bdea2eb5 Merge branch 'MDL-35864' of https://github.com/danielneis/moodle 2014-07-22 16:32:26 +01:00
Daniel Neis
ee9e079ddd MDL-35864 Require 'enrol/PLUGIN:config' capabilities to delete enrol instances 2014-06-20 13:08:18 -03:00
Jonathan Champ
29d4dfec34 MDL-28420 enrol_database: Allow use of remote hidden field to specify non-enrolled 'Other User' creation 2014-06-19 10:27:56 -04: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
Petr Škoda
6cf2091571 MDL-16073 add test for connection to external database for authentication and enrolments 2013-10-08 21:53:51 +02:00
Petr Škoda
2f1e464a88 MDL-40438 migrate all collatorlib:: and textlib:: uses 2013-08-06 21:04:35 +02:00
Petr Škoda
77a5c09354 MDL-37742 simplify dirty one-space oracle hack 2013-03-24 13:43:18 +01:00
Petr Škoda
47bf916773 MDL-37767 allow empty host in enrol_database which is required for default pg socket 2013-01-30 00:40:03 +01:00
Petr Škoda
411c3f9800 MDL-37293 user progress_trace in enrol_database sync 2012-12-29 21:43:03 +01:00
Marina Glancy
b5cf83f080 MDL-36017 Fields numsections, hiddensections and coursedisplay are now format-specific options
- Fields added to format_legacy as default course format options;
- Upgrade script copies fields values from table course to course_format_options;
- Fields removed from table course;
- Fields removed from edit course form;
- Since front-page course has a 'numsections' setting, format_site defines it as it's option;
- Removed accessing those fields in core code unless we know that format supports them and in this
  case instead of $course = $DB->get_record('course'); we use:
  $course = course_get_format($courseorid)->get_course(); This way all format-specific options
  are added to the $course object
2012-11-02 10:56:19 +08:00
Petr Škoda
7fa34d1066 MDL-35701 add enrol_database restore support 2012-09-30 14:36:57 +02:00
Petr Škoda
d2f26cec9d MDL-35701 add parameter for sync of one course only 2012-09-30 14:36:50 +02:00
Petr Škoda
f34518d956 MDL-35701 fix inline docs 2012-09-30 14:36:39 +02:00
Petr Škoda
9bb3a168cf MDL-35701 respect case of external column names in enrol_database
This fixes a regression which prevents referencing of uppercase columns in databases with case sensitive column names. Unfortunately users that relied on this incorrect behaviour may need to lowercase the column names in plugin settings.
2012-09-30 14:36:31 +02:00
Petr Škoda
13a2366cad MD-35701 implement enrol_database unit tests and fix minor issues
Includes fixes for minor problems discovered during testing:
* Removed invalid role->fullname sync option, there was never such fields in roles table and the name column is now usually empty.
* Empty category column now means use default category.
2012-09-30 14:36:23 +02:00
Petr Škoda
d34770032c Merge branch 'master_MDL-35562' of git://github.com/danmarsden/moodle into w40_MDL-35701_m24_enroldb 2012-09-30 14:35:57 +02:00
Dan Marsden
c70590245d MDL-35562 enrol_database: enrolment_sync - don't halt sync on failed search for course. 2012-09-28 09:06:44 +12:00
Dan Marsden
d7e8f95b74 MDL-35557 enrol/database: use distinct call when getting list of courses that should be added. 2012-09-28 09:05:28 +12:00
Petr Škoda
085bf0c9fb MDL-35331 add description of invalid enrolment records in enrol_database sync 2012-09-15 14:24:01 +02:00
Frederic Massart
55bcef2954 MDL-34461 Librairies: Replaced deprecated get_context_instance() 2012-07-23 17:42:05 +08:00
Petr Škoda
0004317f79 MDL-33876 skip deleted users in enrol_database sync 2012-06-30 08:42:16 +02:00
Petr Skoda
bc8926e34b MDL-32178 ignore duplicates in enroL_database external course table 2012-05-06 15:51:25 +02:00
Petr Skoda
bcecc9ba68 MDL-32574 basic addodb connection tests + improved connection handling in enrol_database
This should allow us to allow connection via dsn which will allow a lot more options in the future.
2012-04-22 11:03:32 +02:00
Petr Skoda
a12f9825dd MDL-32046 show warning that unenrolment of all users is not allowed in non-verbose mode 2012-03-16 11:03:31 +01:00
Eloy Lafuente (stronk7)
b39877ef10 Merge branch 'w11_MDL-31790_m23_resetunenrol' of git://github.com/skodak/moodle 2012-03-13 18:13:52 +01:00
Petr Skoda
35c89e5e87 MDL-31790 fix incorrect capability 2012-03-13 09:09:04 +01:00
Petr Skoda
b6f7dbe3a2 MDL-31845 fix not-null constraint on idnumber 2012-03-10 14:25:28 +01:00
Petr Skoda
e042c58df1 MDL-31845 add "Local category field" option in database enrol plugin
This patch uses code from the original patch by Michael Aherne, most of the credit goes to him.
2012-03-10 14:19:49 +01:00
Eloy Lafuente (stronk7)
2ed7cc2730 Merge branch 'w10_MDL-31301_m23_textlibcleanup' of git://github.com/skodak/moodle 2012-03-06 16:06:53 +01:00
Petr Skoda
f8311defeb MDL-31301 use static textlib methods 2012-03-03 11:46:13 +01:00
Petr Skoda
4a63589000 MDL-31361 allow unenrolling of suspended users in enrol/database 2012-03-03 11:37:51 +01:00
Petr Skoda
9f38ba6860 MDL-29117 use default course settings when template not set in db enrol 2011-12-11 10:57:44 +01:00
Petr Skoda
629303c1c8 MDL-30528 stop recreating role_assignments on every login attempt for each user
Credit goes to Luis Gustavo Mueller de Alcantara.
2011-12-06 08:48:38 +01:00
Petr Skoda
804796138a MDL-29688 properly reactivate ext db enrolment 2011-10-23 20:51:39 +02:00
Petr Skoda
358fb4dc06 MDL-29688 fix user enrolment modification event
Fixed invalid event name and usage.
2011-10-23 20:30:33 +02:00
Petr Skoda
05e60bd206 MDL-29306 support multiple roles in ext enrol db 2011-09-10 23:30:58 +02:00
Petr Skoda
6650f3dedf MDL-29020 add CLI verbose mode and stop requiring course idnumber when external column specified 2011-08-20 12:59:23 +02:00
Petr Skoda
6c6b8ad2f0 MDL-27375 add missing lowercasing of external column names
Credit goes to Gail Preuninger.
2011-07-02 15:16:02 +02:00
Petr Skoda
87e88690b2 MDL-26066 fix invalid type comparison when course id used and typo fix 2011-01-23 14:56:28 +01:00
Petr Skoda
3093ce8021 MDL-25988 fixed overriding of roles variable
credit goes to Michael Landis
2011-01-14 19:04:55 +01:00
Petr Skoda
07cd46d84d MDL-25674 detection of invalid $user parameter when synchronising user enrolments 2010-12-20 14:41:18 +01:00