Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 192 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


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.