mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
No need get_student_courses() and get_teacher_courses() anymore.
This commit is contained in:
parent
16dbf42695
commit
b001dec454
@ -26,35 +26,6 @@ class enrolment_plugin_authorize
|
||||
var $log;
|
||||
|
||||
|
||||
/**
|
||||
* Returns information about the courses a student has access to
|
||||
*
|
||||
* Set the $user->student course array
|
||||
* Set the $user->timeaccess course array
|
||||
*
|
||||
* @param object &$user must contain $user->id already set
|
||||
*/
|
||||
function get_student_courses(&$user) {
|
||||
$manual = enrolment_factory::factory('manual');
|
||||
$manual->get_student_courses($user);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns information about the courses a teacher has access to
|
||||
*
|
||||
* Set the $user->teacher course array
|
||||
* Set the $user->teacheredit course array
|
||||
* Set the $user->timeaccess course array
|
||||
*
|
||||
* @param object &$user must contain $user->id already set
|
||||
*/
|
||||
function get_teacher_courses(&$user) {
|
||||
$manual = enrolment_factory::factory('manual');
|
||||
$manual->get_teacher_courses($user);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Shows a credit card form for registration.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user