Elgg  Version 3.0
Variables
register.php File Reference

Go to the source code of this file.

Variables

if(!elgg_get_config('allow_registration')) $username = $request->getParam('username')
 
 $password = $request->getParam('password', null, false)
 
 $password2 = $request->getParam('password2', null, false)
 
 $email = $request->getParam('email')
 
 $name = $request->getParam('name')
 
 try
 
 $failures = $validation->getFailures()
 
if($failures) $guid = register_user($username, $password, $name, $email)
 
if($guid===false) $new_user = get_user($guid)
 
 $fail
 
 $params ['user'] = $new_user
 
 $response_data
 
 $forward_url = _elgg_get_login_forward_url($request, $new_user)
 
 $response_message = elgg_echo('registerok', [elgg_get_site_entity()->getDisplayName()])
 

Variable Documentation

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

Definition at line 18 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:1176
const ELGG_IGNORE_ACCESS
elgg_call() flags
Definition: constants.php:156
if($guid===false) $new_user
Definition: register.php:41

Definition at line 43 of file register.php.

$failures = $validation->getFailures()

Definition at line 27 of file register.php.

$forward_url = _elgg_get_login_forward_url($request, $new_user)

Definition at line 80 of file register.php.

if ($failures) $guid = register_user($username, $password, $name, $email)

Definition at line 36 of file register.php.

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

Definition at line 19 of file register.php.

if ($guid===false) $new_user = get_user($guid)

Definition at line 41 of file register.php.

$params['user'] = $new_user

Definition at line 55 of file register.php.

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

Definition at line 16 of file register.php.

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

Definition at line 17 of file register.php.

$response_data
Initial value:
= [
'user' => $new_user
if($guid===false) $new_user
Definition: register.php:41

Definition at line 68 of file register.php.

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

Definition at line 81 of file register.php.

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

Definition at line 15 of file register.php.

if (!$new_user->isEnabled()) try
Initial value:
{
elgg_validate_registration_data($username, $password, $name, $email, $allow_multiple_emails=false)
Assert that given registration details are valid and can be used to register the user.
Definition: users.php:222
$password2
Definition: register.php:17
$name
Definition: register.php:19
$email
Definition: register.php:18
$password
Definition: register.php:16
if(!elgg_get_config('allow_registration')) $username
Definition: register.php:15

Definition at line 25 of file register.php.