Dan Marsden
a4aaeeaa81
MDL-41144 enrol_flatfile: ignore deleted users.
2013-08-16 09:32:22 +12:00
sam marshall
ab7632b74c
MDL-39876 Change get_record('course') calls to get_course
2013-08-15 11:31:20 +01:00
Dan Poltawski
631d9f661f
MDL-41191 enrol: unit tests for enrol_get_shared_courses
2013-08-15 11:50:08 +08:00
Petr Škoda
96f81ea385
MDL-39474 introduce $CFG->debugdeveloper and cleanup $CFG init
2013-08-12 13:01:47 +02:00
Petr Škoda
2f1e464a88
MDL-40438 migrate all collatorlib:: and textlib:: uses
2013-08-06 21:04:35 +02:00
Marina Glancy
9be9b412b1
Merge branch 'wip-mdl-40126' of git://github.com/rajeshtaneja/moodle
2013-08-06 22:53:19 +10:00
Sam Hemelryk
5261f26e0e
Merge branch 'w32_MDL-41002_m26_enroltypo' of https://github.com/skodak/moodle
2013-08-06 16:55:48 +12:00
Petr Škoda
8252b7c291
MDL-40901 standardise core test case class and file names
...
This finally allows us to type only the class name when executing individual core test cases.
2013-08-04 22:10:31 +02:00
Petr Škoda
529342bb9f
MDL-41002 fix typo causing fatal error on other users page
...
Credit goes to Bernhard Brandstetter, thanks!
2013-08-04 15:00:53 +02:00
Sam Hemelryk
9459ccc974
NOBUG fixed whitespace
2013-07-30 10:08:51 +12: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
Petr Škoda
1344bc780a
MDL-39786 add support for suspend only in meta course plugin
2013-07-26 10:33:14 +02:00
Petr Škoda
17601a7e12
MDL-39985 add explicit MariaDB support
2013-07-24 10:45:20 +08:00
Eloy Lafuente (stronk7)
18c4d7e68c
Merge branch 'w30_MDL-40723_m26_creators' of https://github.com/skodak/moodle
2013-07-23 20:32:40 +02:00
Petr Škoda
54d5308ef0
MDL-40723 use guess_if_creator_will_have_course_capability() for the new weird function
2013-07-23 15:55:07 +02:00
Sam Hemelryk
18474f822b
Merge branch 'MDL-40666-master' of git://github.com/danpoltawski/moodle
2013-07-23 14:09:08 +12:00
Eloy Lafuente (stronk7)
63ff2c5c2f
Merge branch 'MDL-39635_master' of git://github.com/dmonllao/moodle
2013-07-23 00:45:13 +02:00
Petr Škoda
dba745265f
MDL-40723 use will_have_course_capability() to verify future course creator capabilities when creating courses
2013-07-21 17:03:20 +02:00
David Monllao
3897608152
MDL-39635 behat: XPath cleanups
...
- Escaping steps arguments redirected to other steps
- Adding normalized-space() in all contains() assertions
- General xpaths review
- Convering provided xpath text strings to xpath literals
to avoid problems with arguments containing both single
quotes and double quotes
2013-07-19 10:02:36 +02:00
David Monllao
dedb973878
MDL-39635 behat: Replacing hardcoded language strings
...
Using get_string() instead.
2013-07-19 10:02:10 +02:00
Petr Škoda
4b734e74ae
MDL-39846 more fixing and cleanup of new events
...
* fix typos (thanks Rajesh)
* move log related data out from event API specification
* change callable key in definition to callback
* use event data in observers instead of cached records if possible
* event level is now a number 1…100
* improved event safety checks
* add event name and description method
* new can_view() method
* improve unit tests to test all callable types
* improved performance
2013-07-19 08:43:27 +02:00
Petr Škoda
e99a209094
MDL-39846 convert enrol_category to new events and class loader
2013-07-19 08:43:27 +02:00
Eloy Lafuente (stronk7)
fb1788c598
Merge branch 'MDL-40424-master' of git://github.com/FMCorz/moodle
...
Conflicts:
admin/oacleanup.php
2013-07-17 01:21:51 +02:00
Dan Poltawski
fb5ce7d351
MDL-40666 enrol|cohort: PARAM_NUMBER -> PARAM_INT
...
PARAM_NUMBER is a float, our id's are int's
* Fix core_cohort_get_cohorts to specify correct return type on cohort id
* Fix core_enrol_get_enrolled_users_with_capability to specify correct
correct return type on user id
* Fix core_cohort_update_cohorts to specify the right parameter type
(int) on cohort id
* Add tests to verify the bug on core_cohort_update_cohorts param type.
2013-07-16 15:03:03 +08:00
Dan Poltawski
c06a812ed6
MDL-28466 Remove enrol_authorize - this code is dead
...
It does not work and its not maintained.
2013-07-15 10:25:13 +08:00
Frederic Massart
2e4c0c9181
MDL-40424 libraries: Deprecate context_instance_preload_sql()
2013-07-12 17:41:49 +08:00
Rajesh Taneja
117e94a050
MDL-40358 Enrolments: Fixed sql when user is suspended
2013-07-10 17:40:20 +10:00
Sam Hemelryk
a8402cc115
Merge branch 'MDL-40527' of git://github.com/timhunt/moodle
2013-07-10 10:31:39 +12:00
Sam Hemelryk
d9734c91ee
MDL-40358 enrol: whitespace clean up
2013-07-10 10:07:10 +12:00
Sam Hemelryk
fc7e5a031e
Merge branch 'wip-mdl-40358' of git://github.com/rajeshtaneja/moodle
2013-07-10 09:54:38 +12:00
Ankit Agarwal
db314f34fb
MDL-40425 libraries: Remove context_instance_preload() from core
2013-07-09 15:55:51 +08:00
Frederic Massart
8e8891b76b
MDL-40403 libraries: Deprecate get_parent_contexts()
2013-07-09 13:34:44 +08:00
Tim Hunt
70f4ac5aea
MDL-40527 enrol meta: respect $CFG->courselistshortnames
...
Thanks to James Henestofel for working this out in MDL-37558. That issue
got complex, so I am just submitting this simple part of it for
integration.
2013-07-05 15:30:17 +01:00
Ankit Agarwal
0601e0eef6
MDL-40402 libraries: Replace get_system_context() with context_system::instance() in core
2013-07-04 15:41:06 +08:00
Eloy Lafuente (stronk7)
8b180f2317
Merge branch 'MDL-40439-en_fix' of git://github.com/mudrd8mz/moodle
2013-07-02 13:47:09 +02:00
Helen Foster
77fc81f3ee
MDL-40439 Merge English strings from the en_fix language pack
2013-07-02 11:42:10 +02:00
Rajesh Taneja
38efca2315
MDL-40127 Enrolments: Updated version and update.txt
2013-07-02 14:35:35 +08:00
Rajesh Taneja
94b98dae64
MDL-40127 Enrolments: Added unit test
2013-07-02 14:35:34 +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
Rajesh Taneja
aa5132140b
MDL-40358 Administration: Added group and status filter on user enrolment page
2013-07-01 14:20:21 +08:00
Eloy Lafuente (stronk7)
1d04b481dd
Merge branch 'w26_MDL-40254_m26_flatfile' of https://github.com/skodak/moodle
2013-06-24 21:13:01 +02:00
Petr Škoda
3748e469fe
MDL-40254 ignore flatfile records with no user idnumber
2013-06-23 21:37:56 +02:00
Ankit Agarwal
1e63179285
MDL-39153 webservices: Provide alternative to passing contextids
...
As per our policy webservices should never have a required contextid, thuse providing a support for passing contextlevel and instanceid as parameters to the api
2013-06-18 14:15:54 +08:00
Sam Hemelryk
07cfd5e599
Merge branch 'MDL-39152-master' of git://github.com/ankitagarwal/moodle
2013-06-18 15:34:30 +12:00
Ankit Agarwal
5b23d9adac
MDL-39152 webservices: Rename external_api::get_context() to external_api::get_context_from_params()
2013-06-17 15:18:49 +08:00
Ankit Agarwal
aac70ffc18
MDL-39152 webservices: Abstract context fetching
...
Since many apis in future will need to provide alternative method to fetch context, I have abstracted this bit into the core external_api class
2013-06-14 15:47:48 +08:00
Ankit Agarwal
235b5c680a
MDL-39152 phpunit: Move core_role_external_testcase() to a new file
...
It is not recommended to have multiple test classes in a single phpunit file
2013-06-14 11:50:25 +08:00
Ankit Agarwal
95a3bb4dc8
MDL-39152 phpunit: improve tests for assign_roles()
...
core_role_external::assign_roles() now support alternative paramaters instead of contextid. Test working of those. Also test the parameters validation a bit, since these are no longer automatically tested being optional now
2013-06-14 11:50:25 +08:00
Ankit Agarwal
3a68f79809
MDL-39152 webservices: Provide alternative to context id
...
As per our policy asking for and returning contextids is discouraged in webservices. So provide alternative parameters for the same
2013-06-14 11:50:25 +08:00