Commit Graph

49 Commits

Author SHA1 Message Date
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
Petr Skoda 883deb3eb5 MDL-25659 fixed borked creation of enrol instances enrol/database, fixed detection of misconfigured sync 2010-12-13 20:48:29 +00:00
Petr Skoda 12c3ba99e7 MDL-25659 fixed overriding of fields variable and improved coding style in similar places
credit goes to Bill Johnson
2010-12-13 18:07:40 +00:00
Petr Skoda 6c796bb6bd MDL-25338 optional param: newcourseidnumber is treated like required param resulting in logic error, credit goes to Nick Thompson 2010-11-20 02:27:34 +00:00
Petr Skoda 3338a72fa0 MDL-25337 fixed invalid config test in enrol course sync, credit goes to Nick Thompson 2010-11-20 02:24:05 +00:00
Petr Skoda 346c5887b1 MDL-24751 using new memory constants 2010-10-19 10:13:15 +00:00
Petr Skoda 94b9c2e8da MDL-24321 switching to stdClass in /e*/ 2010-09-21 08:14:41 +00:00
Petr Skoda 9779585953 MDL-23502 oops, die()! 2010-07-31 20:30:29 +00:00
Petr Skoda 9232bceb53 MDL-23502 fixed php docs in enrol/database + removed unnecessary caps 2010-07-31 20:15:36 +00:00
Petr Skoda e384d2dc7b MDL-22780 sync ext db enrol when user logs in - except admins in case something goes really wrong in plugins 2010-07-10 18:53:52 +00:00
Petr Skoda 341217658e MDL-23151 new ext sync option and minor refactoring 2010-07-08 10:57:23 +00:00
Petr Skoda df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00