Go to the source code of this file.
Namespaces | |
| namespace | CLUSR |
Functions | |
| user_add_to_course ($userId, $courseCode, $admin=false, $tutor=false, $register_by_class=false) | |
| is_course_registration_allowed ($courseId) | |
| get_course_registration_key ($courseId) | |
| user_remove_from_course ($userId, $courseCodeList=array(), $force=false, $delTrackData=false, $unregister_by_class=false) | |
| user_remove_from_group ($userId, $courseId) | |
| user_delete_course_tracking_data ($userId, $courseId) | |
| user_set_course_properties ($userId, $courseId, $propertyList) | |
| user_set_course_manager ($status, $userId, $courseId) | |
| user_set_course_tutor ($status, $userId, $courseId) | |
| user_send_enroll_to_course_mail ($userId, $data, $course=null) | |
| course_user_get_properties ($userId, $courseId) | |
| course_user_html_form ($data, $courseId, $userId, $hiddenParam=null) | |
| claro_get_course_user_list ($courseId=NULL) | |
| claro_get_course_user_list | ( | $ | courseId = NULL |
) |
return the list of user of the course in parameter. It use by default the current course identification
| char | $courseId course identication |
Definition at line 611 of file course_user.lib.php.
| course_user_get_properties | ( | $ | userId, | |
| $ | courseId | |||
| ) |
get the main user information
| integer | $user_id user id as stored in the claroline main db |
Definition at line 471 of file course_user.lib.php.
| course_user_html_form | ( | $ | data, | |
| $ | courseId, | |||
| $ | userId, | |||
| $ | hiddenParam = null | |||
| ) |
Display form to edit course user properties
| $data | array to fill the form |
Definition at line 519 of file course_user.lib.php.
| get_course_registration_key | ( | $ | courseId | ) |
| string | $courseId - sys code of the course |
Definition at line 129 of file course_user.lib.php.
| is_course_registration_allowed | ( | $ | courseId | ) |
Check if the registration flag of the given course is "open"
| string | $courseId - sys code of the course |
Definition at line 109 of file course_user.lib.php.
| user_add_to_course | ( | $ | userId, | |
| $ | courseCode, | |||
| $ | admin = false, |
|||
| $ | tutor = false, |
|||
| $ | register_by_class = false | |||
| ) |
subscribe a specific user to a specific course
| int | $user_id user ID from the course_user table | |
| string | $course_code course code from the cours table |
Definition at line 32 of file course_user.lib.php.
| user_delete_course_tracking_data | ( | $ | userId, | |
| $ | courseId | |||
| ) |
remove tracking user data from a course
| int | $userId user ID from the course_user table | |
| string | $courseCode course code from the cours table |
Definition at line 307 of file course_user.lib.php.
| user_remove_from_course | ( | $ | userId, | |
| $ | courseCodeList = array(), |
|||
| $ | force = false, |
|||
| $ | delTrackData = false, |
|||
| $ | unregister_by_class = false | |||
| ) |
unsubscribe a specific user from a specific course
| int | $user_id user ID from the course_user table | |
| mixed | (string or array) $courseCodeList course sys code | |
| boolean | $force true possible to remove a course admin from course (default false) | |
| boolean | $deleteTrackingData (default false) |
Definition at line 165 of file course_user.lib.php.
| user_remove_from_group | ( | $ | userId, | |
| $ | courseId | |||
| ) |
remove a specific user from a course groups
TODO : move in group.lib.php
| int | $userId user ID from the course_user table | |
| string | $courseCode course code from the cours table |
Definition at line 283 of file course_user.lib.php.
| user_send_enroll_to_course_mail | ( | $ | userId, | |
| $ | data, | |||
| $ | course = null | |||
| ) |
Send enroll to course succeded email to user
| $userId | integer | |
| $data | array |
Definition at line 429 of file course_user.lib.php.
| user_set_course_manager | ( | $ | status, | |
| $ | userId, | |||
| $ | courseId | |||
| ) |
set or unset course manager status for a the user in a course
| boolean | $status 'true' for course manager, 'false' for not | |
| integer | $user_id user ID from the course_user table | |
| string | $course_code course code from the cours table |
Definition at line 393 of file course_user.lib.php.
| user_set_course_properties | ( | $ | userId, | |
| $ | courseId, | |||
| $ | propertyList | |||
| ) |
change the status of the user in a course
| $userId | integer user ID from the course_user table | |
| $courseId | string course code from the cours table | |
| $propertyList | array should contain 'role', 'profileId', 'isCOurseManager', 'tutor' |
Definition at line 330 of file course_user.lib.php.
| user_set_course_tutor | ( | $ | status, | |
| $ | userId, | |||
| $ | courseId | |||
| ) |
set or unset course tutor status for a user in a course
| boolean | $status, 'true' for tutor status, 'false' for not ... | |
| int | $userId user ID from the course_user table | |
| string | $courseId course code from the cours table |
Definition at line 412 of file course_user.lib.php.
1.6.3