29 $messages = array_map(
function (\
Elgg\Validation\ValidationResult $e) {
30 return $e->getError();
37 if (
$guid ===
false) {
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags...
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.
_elgg_get_login_forward_url(\Elgg\Request $request,\ElggUser $user)
Determine which URL the user should be forwarded to upon successful login.
get_user($guid)
Get a user object from a GUID.
$request
Page handler for autocomplete endpoint.
const ELGG_HTTP_UNAUTHORIZED
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
const ELGG_IGNORE_ACCESS
elgg_call() flags
elgg_error_response($error= '', $forward_url=REFERRER, $status_code=ELGG_HTTP_OK)
Prepare an error response to be returned by a page or an action handler.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
register_user($username, $password, $name, $email, $allow_multiple_emails=false, $subtype=null)
Registers a user, returning false if the username already exists.
elgg_get_site_entity()
Get the current site entity.
elgg_ok_response($content= '', $message= '', $forward_url=null, $status_code=ELGG_HTTP_OK)
Prepares a successful response to be returned by a page or an action handler.
if(!elgg_get_config('allow_registration')) $username
const ELGG_HTTP_BAD_REQUEST
login(\ElggUser $user, $persistent=false)
Logs in a specified .
elgg_get_config($name, $default=null)
Get an Elgg configuration value.
if($guid===false) $new_user