Class for handling interaction with the moodlenet profile.
More...
Class for handling interaction with the moodlenet profile.
- Copyright
- 2020 Adrian Greeve adria.nosp@m.n@mo.nosp@m.odle..nosp@m.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ create_user_profile_category()
static tool_moodlenet\profile_manager::create_user_profile_category |
( |
| ) |
|
|
static |
Create a custom user profile category to hold our custom field.
- Return values
-
int | The id of the created category. |
◆ create_user_profile_text_field()
static tool_moodlenet\profile_manager::create_user_profile_text_field |
( |
int | $categoryid | ) |
|
|
static |
Create a user profile field to hold the moodlenet profile information.
- Parameters
-
int | $categoryid | The category to put this field into. |
◆ get_category_name()
static tool_moodlenet\profile_manager::get_category_name |
( |
| ) |
|
|
static |
Gets the category name that is set for this site.
- Return values
-
string | The category used to hold the moodle net profile field. |
◆ get_moodlenet_profile_link()
Given our $moodlenetprofile let's cURL the domains' WebFinger endpoint.
- Parameters
-
moodlenet_user_profile | $moodlenetprofile | The moodlenet profile to get info from. |
- Return values
-
◆ get_moodlenet_user_profile()
static tool_moodlenet\profile_manager::get_moodlenet_user_profile |
( |
int | $userid | ) |
|
|
static |
Get the mnet profile for a user.
- Parameters
-
int | $userid | The ID for the user to get the profile form |
- Return values
-
moodlenet_user_profile | or null. |
◆ get_profile_field_name()
static tool_moodlenet\profile_manager::get_profile_field_name |
( |
| ) |
|
|
static |
Gets the unique profile field used to hold the moodle net profile.
- Return values
-
string | The profile field name being used on this site. |
◆ official_profile_exists()
static tool_moodlenet\profile_manager::official_profile_exists |
( |
| ) |
|
|
static |
Are we using the proper user profile field to hold the mnet profile?
- Return values
-
bool | True if we are using a user table field for the mnet profile. False means we are using costom profile fields. |
◆ save_moodlenet_user_profile()
static tool_moodlenet\profile_manager::save_moodlenet_user_profile |
( |
moodlenet_user_profile | $moodlenetprofile | ) |
|
|
static |
Save the moodlenet profile.
- Parameters
-
moodlenet_user_profile | $moodlenetprofile | The moodlenet profile to save. |
The documentation for this class was generated from the following file: