19 }
catch (\
Elgg\Exceptions\DomainException $ex) {
23 }
catch (\
Elgg\Exceptions\ClassException $ex) {
40 if (empty($username)) {
54 $username = rawurldecode($username);
55 if (empty($username)) {
60 if (!empty($logged_in_user) && ($logged_in_user->username === $username)) {
61 return $logged_in_user;
66 'metadata_name_value_pairs' => [
70 'case_sensitive' =>
false,
94 'metadata_name_value_pairs' => [
98 'case_sensitive' =>
false,
180 return _elgg_services()->accounts->validateAccountData($username, $password, $name, $email, $allow_multiple_emails);
207 return _elgg_services()->hmac->validateInviteCode($username, $code);
253 return _elgg_services()->persistentLogin->getUserFromToken($token);
elgg_validate_invite_code(string $username, string $code)
Validate a user's invite code.
$params
Saves global plugin settings.
if(empty($user_guids)) $users
if(!$user||!$user->canDelete()) $name
elgg_generate_password()
Generate a random 12 character clear text password.
elgg_get_user_by_username(string $username, bool $try_email=false)
Get a user by username.
elgg_get_login_url(array $query=[], string $fragment= '')
Returns site's login URL Triggers a 'login_url', 'site' event that can be used by plugins to alter th...
elgg_save_new_password(\ElggUser $user, string $conf_code, string $password=null)
Validate and change password for a user.
elgg_get_user_by_persistent_token(string $token)
Get a user based on a persistent login token.
elgg_register_user(array $params=[])
Registers a user.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
elgg_trigger_event_results(string $event, string $type, array $params=[], $returnvalue=null)
Triggers an event where it is expected that the mixed return value could be manipulated by event call...
if(!$user||!$user->canEdit()) $password
elgg_get_entities(array $options=[])
Fetches/counts entities or performs a calculation on their properties.
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.
elgg_log($message, $level=\Psr\Log\LogLevel::NOTICE)
Log a message.
elgg_get_registration_url(array $parameters=[], string $fragment= '')
Returns site's registration URL Triggers a 'registration_url', 'site' event that can be used by plugi...
elgg_http_add_url_query_elements(string $url, array $elements)
Sets elements in a URL's query string.
get_user(int $guid)
Elgg users Functions to manage multiple or single users in an Elgg install.
elgg_get_user_by_email(string $email)
Get a user from an email address.
elgg_generate_invite_code(string $username)
Generates a unique invite code for a user.
foreach($plugin_guids as $guid) if(empty($deactivated_plugins)) $url
elgg_request_new_password(\ElggUser $user)
Generate and send a password request email to a given user's registered email address.
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
_elgg_services()
Get the global service provider.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
$guid
Reset an ElggUpgrade.