Elgg  Version master
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 = get_input('forward_url')
 
if(empty($forward)) else
 

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:304
const ELGG_SHOW_DISABLED_ENTITIES
Definition: constants.php:123
const ELGG_SHOW_DELETED_ENTITIES
Definition: constants.php:127
if($guid===elgg_get_logged_in_user_guid()) $user
Definition: delete.php:15

Definition at line 25 of file delete.php.

if (!$deleted) $forward = get_input('forward_url')

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:304
const ELGG_SHOW_DISABLED_ENTITIES
Definition: constants.php:123
get_user(int $guid)
Elgg users Functions to manage multiple or single users in an Elgg install.
Definition: users.php:16
const ELGG_SHOW_DELETED_ENTITIES
Definition: constants.php:127
$guid
Delete a user.
Definition: delete.php:10

Definition at line 15 of file delete.php.

$username = $user->username

Definition at line 23 of file delete.php.

if (empty($forward)) else
Initial value:
{
if(!$deleted) $forward
Definition: delete.php:33
elgg_normalize_site_url(string $unsafe_url)
From untrusted input, get a site URL safe for forwarding.
Definition: output.php:175
const REFERRER
Used in calls to forward() to specify the browser should be redirected to the referring page...
Definition: constants.php:37

Definition at line 40 of file delete.php.