Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Protected Attributes | List of all members
tool_moodlenet\moodlenet_user_profile Class Reference

A class to represent the moodlenet profile. More...

Public Member Functions

 __construct (string $userprofile, int $userid)
 Constructor method. More...
 
 get_domain ()
 Get the domain for this profile. More...
 
 get_profile_name ()
 Get the full moodle net profile. More...
 
 get_userid ()
 Get the user ID that this profile belongs to. More...
 
 get_username ()
 Get the username for this profile. More...
 

Protected Attributes

string $domain
 $domain The domain from $domain
 
string $profile
 $profile The full profile name.
 
int $userid
 $userid The user ID that this profile belongs to.
 
string $username
 $username The username from $userprofile
 

Detailed Description

A class to represent the moodlenet profile.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

tool_moodlenet\moodlenet_user_profile::__construct ( string  $userprofile,
int  $userid 
)

Constructor method.

Parameters
string$userprofileThe moodle net user profile string.
int$useridThe user ID that this profile belongs to.

Member Function Documentation

◆ get_domain()

tool_moodlenet\moodlenet_user_profile::get_domain ( )

Get the domain for this profile.

Return values
stringThe domain.

◆ get_profile_name()

tool_moodlenet\moodlenet_user_profile::get_profile_name ( )

Get the full moodle net profile.

Return values
stringThe moodle net profile.

◆ get_userid()

tool_moodlenet\moodlenet_user_profile::get_userid ( )

Get the user ID that this profile belongs to.

Return values
intThe user ID.

◆ get_username()

tool_moodlenet\moodlenet_user_profile::get_username ( )

Get the username for this profile.

Return values
stringThe username.

The documentation for this class was generated from the following file: