Elgg  Version 6.1
Variables
register.php File Reference

Go to the source code of this file.

Variables

 $username = (string) $request->getParam('username')
 
 $password = (string) $request->getParam('password', null, false)
 
 $password2 = (string) $request->getParam('password2', null, false)
 
 $email = (string) $request->getParam('email')
 
 $name = (string) $request->getParam('name')
 
 try
 
 $failures = $validation->getFailures()
 
if($failures) $new_user
 
 $fail
 
 $params ['user'] = $new_user
 
if(!elgg_trigger_event_results('register', 'user', $params, true)) if($new_user->isValidated()===null) catch(\Exception $e) $response_data
 
 $forward_url = elgg_get_login_forward_url($new_user)
 
 $response_message = elgg_echo('registerok', [elgg_get_site_entity()->getDisplayName()])
 

Variable Documentation

$email = (string) $request->getParam('email')

Definition at line 15 of file register.php.

$fail
Initial value:
= function () use ($new_user) {
elgg_call(ELGG_IGNORE_ACCESS, function () use ($new_user) {
$new_user->delete();
});
}
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags...
Definition: elgglib.php:306
if($failures) $new_user
Definition: register.php:33
const ELGG_IGNORE_ACCESS
elgg_call() flags
Definition: constants.php:121

Definition at line 41 of file register.php.

$failures = $validation->getFailures()

Definition at line 24 of file register.php.

$forward_url = elgg_get_login_forward_url($new_user)

Definition at line 81 of file register.php.

$name = (string) $request->getParam('name')

Definition at line 16 of file register.php.

if ($failures) $new_user
Initial value:
'username' => $username,
'password' => $password,
'name' => $name,
'email' => $email,
'validated' => false,
])
elgg_register_user(array $params=[])
Registers a user.
Definition: users.php:154
$name
Definition: register.php:16
$email
Definition: register.php:15
$password
Definition: register.php:13
$username
Definition: register.php:12

Definition at line 33 of file register.php.

$params['user'] = $new_user

Definition at line 53 of file register.php.

$password = (string) $request->getParam('password', null, false)

Definition at line 13 of file register.php.

$password2 = (string) $request->getParam('password2', null, false)

Definition at line 14 of file register.php.

if (!elgg_trigger_event_results('register', 'user', $params, true)) if ($new_user->isValidated()===null) catch (\Exception $e) $response_data
Initial value:
= [
'user' => $new_user
if($failures) $new_user
Definition: register.php:33

Definition at line 69 of file register.php.

$response_message = elgg_echo('registerok', [elgg_get_site_entity()->getDisplayName()])

Definition at line 82 of file register.php.

$username = (string) $request->getParam('username')

Definition at line 12 of file register.php.

if (!elgg_trigger_event_results('register', 'user', $params, true)) if ($new_user->isValidated()===null) catch (\Exception $e) if (!$new_user->isEnabled()) try
Initial value:
{
$password2
Definition: register.php:14
$name
Definition: register.php:16
$email
Definition: register.php:15
$password
Definition: register.php:13
elgg_validate_registration_data(string $username, string|array $password, string $name, string $email, bool $allow_multiple_emails=false)
Assert that given registration details are valid and can be used to register the user.
Definition: users.php:171
$username
Definition: register.php:12

Definition at line 22 of file register.php.