Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
auth_email_external Class Reference

Auth e-mail external functions. More...

Inheritance diagram for auth_email_external:

Static Public Member Functions

static get_signup_settings ()
 Get the signup required settings and profile fields.
 
static get_signup_settings_parameters ()
 Describes the parameters for get_signup_settings.
 
static get_signup_settings_returns ()
 Describes the get_signup_settings return value.
 
static signup_user ($username, $password, $firstname, $lastname, $email, $city='', $country='', $recaptchachallengehash='', $recaptcharesponse='', $customprofilefields=array(), $redirect='')
 Get the signup required settings and profile fields.
 
static signup_user_parameters ()
 Describes the parameters for signup_user.
 
static signup_user_returns ()
 Describes the signup_user return value.
 

Static Protected Member Functions

static check_signup_enabled ()
 Check if registration is enabled in this site.
 

Detailed Description

Auth e-mail external functions.

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

Member Function Documentation

◆ check_signup_enabled()

static auth_email_external::check_signup_enabled ( )
staticprotected

Check if registration is enabled in this site.

Exceptions
moodle_exception
Since
Moodle 3.2

◆ get_signup_settings()

static auth_email_external::get_signup_settings ( )
static

Get the signup required settings and profile fields.

Return values
arraysettings and possible warnings
Since
Moodle 3.2
Exceptions
moodle_exception

◆ get_signup_settings_parameters()

static auth_email_external::get_signup_settings_parameters ( )
static

Describes the parameters for get_signup_settings.

Return values
external_function_parameters
Since
Moodle 3.2

◆ get_signup_settings_returns()

static auth_email_external::get_signup_settings_returns ( )
static

Describes the get_signup_settings return value.

Return values
external_single_structure
Since
Moodle 3.2

◆ signup_user()

static auth_email_external::signup_user ( $username,
$password,
$firstname,
$lastname,
$email,
$city = '',
$country = '',
$recaptchachallengehash = '',
$recaptcharesponse = '',
$customprofilefields = array(),
$redirect = '' )
static

Get the signup required settings and profile fields.

Parameters
string$usernameusername
string$passwordplain text password
string$firstnamethe first name(s) of the user
string$lastnamethe family name of the user
string$emaila valid and unique email address
string$cityhome city of the user
string$countryhome country code
string$recaptchachallengehashrecaptcha challenge hash
string$recaptcharesponserecaptcha response
array$customprofilefieldsuser custom fields (also known as user profile fields)
string$redirectSite url to redirect the user after confirmation
Return values
arraysettings and possible warnings
Since
Moodle 3.2
Exceptions
moodle_exception
invalid_parameter_exception

◆ signup_user_parameters()

static auth_email_external::signup_user_parameters ( )
static

Describes the parameters for signup_user.

Return values
external_function_parameters
Since
Moodle 3.2

◆ signup_user_returns()

static auth_email_external::signup_user_returns ( )
static

Describes the signup_user return value.

Return values
external_single_structure
Since
Moodle 3.2

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