Elgg  Version 3.0
Variables
delete.php File Reference

Go to the source code of this file.

Variables

 $guid = (int) get_input('guid')
 Delete a user. More...
 
if($guid===elgg_get_logged_in_user_guid()) $user
 
if(!$user||!$user->canDelete()) $name = $user->getDisplayName()
 
 $username = $user->username
 
 $deleted
 
if(!$deleted) $forward = REFERER
 

Variable Documentation

$deleted
Initial value:
return $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_SHOW_DISABLED_ENTITIES
Definition: constants.php:158
if($guid===elgg_get_logged_in_user_guid()) $user
Definition: delete.php:15

Definition at line 25 of file delete.php.

if (!$deleted) $forward = REFERER

Definition at line 33 of file delete.php.

$guid = (int) get_input('guid')

Delete a user.

The user will be deleted recursively, meaning all entities owned or contained by the user will also be removed.

Definition at line 10 of file delete.php.

if (!$user||!$user->canDelete()) $name = $user->getDisplayName()
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 22 of file delete.php.

if ($guid===elgg_get_logged_in_user_guid()) $user
Initial value:
return get_user($guid);
})
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
get_user($guid)
Get a user object from a GUID.
Definition: users.php:40
$guid
Delete a user.
Definition: delete.php:10
const ELGG_SHOW_DISABLED_ENTITIES
Definition: constants.php:158

Definition at line 15 of file delete.php.

$username = $user->username

Definition at line 23 of file delete.php.