(no description)
File Size: | 192 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
matrix_user_manager:: (7 methods):
get_matrixid_from_moodle()
get_formatted_matrix_userid()
set_matrix_userid_in_moodle()
get_formatted_matrix_home_server()
create_matrix_user_profile_fields()
get_profile_field_name()
load_requirements()
Class: matrix_user_manager - X-Ref
class matrix_user_manager to handle specific actions.get_matrixid_from_moodle(int $userid,) X-Ref |
Gets matrix user id from moodle. param: int $userid Moodle user id return: string|null |
get_formatted_matrix_userid(string $username,) X-Ref |
Get a qualified matrix user id based on a Moodle username. param: string $username The moodle username to turn into a Matrix username return: string |
set_matrix_userid_in_moodle(int $userid,string $matrixuserid,) X-Ref |
Add user's Matrix user id. param: int $userid Moodle user id param: string $matrixuserid Matrix user id |
get_formatted_matrix_home_server() X-Ref |
Sets home server for user matrix id return: string |
create_matrix_user_profile_fields() X-Ref |
Insert "Communication" category and "matrixuserid" field. return: string |
get_profile_field_name() X-Ref |
Get the profile field name, creating the profiel field if it does not exist. return: string |
load_requirements() X-Ref |
Load requirements for profile field management. This is just a helper to keep loading legacy files isolated. |