MDL-49398 accesslib: Update for 3.4 and cleanups

This commit is contained in:
Skylar Kelty
2017-06-05 15:13:07 +01:00
parent 95c0b810bf
commit 4bdd769309
3 changed files with 68 additions and 56 deletions
+4 -5
View File
@@ -6570,7 +6570,6 @@ function calendar_cron() {
return true;
}
/**
* Previous internal API, it was not supposed to be used anywhere.
*
@@ -6582,7 +6581,7 @@ function calendar_cron() {
* @return void modifies $accessdata parameter
*/
function load_course_context($userid, context_course $coursecontext, &$accessdata) {
throw new coding_exception('load_course_context() is removed. Please do not use accesslib private functions or data structures.');
throw new coding_exception('load_course_context() is removed. Do not use private functions or data structures.');
}
/**
@@ -6596,7 +6595,7 @@ function load_course_context($userid, context_course $coursecontext, &$accessdat
* @return array
*/
function load_role_access_by_context($roleid, context $context, &$accessdata) {
throw new coding_exception('load_role_access_by_context() is removed. Please do not use accesslib private functions or data structures.');
throw new coding_exception('load_role_access_by_context() is removed. Do not use private functions or data structures.');
}
/**
@@ -6607,7 +6606,7 @@ function load_role_access_by_context($roleid, context $context, &$accessdata) {
* @return void
*/
function dedupe_user_access() {
throw new coding_exception('dedupe_user_access() is removed. Please do not use accesslib private functions or data structures.');
throw new coding_exception('dedupe_user_access() is removed. Do not use private functions or data structures.');
}
/**
@@ -6624,7 +6623,7 @@ function dedupe_user_access() {
* @return array access info array
*/
function get_user_access_sitewide($userid) {
debugging('get_user_access_sitewide() is deprecated. Please do not use accesslib private functions or data structures.', DEBUG_DEVELOPER);
debugging('get_user_access_sitewide() is deprecated. Do not use private functions or data structures.', DEBUG_DEVELOPER);
$accessdata = get_user_accessdata($userid);
$accessdata['rdef'] = array();