Elgg  Version master
Variables
delete.php File Reference

Go to the source code of this file.

Variables

 $guid = (int) get_input('guid')
 Default entity delete action. More...
 
 $entity
 
if(!$entity instanceof\ElggEntity) if(!$entity->canDelete()||$entity instanceof\ElggPlugin||$entity instanceof\ElggSite||$entity instanceof\ElggUser) $display_name = $entity->getDisplayName() ?: elgg_echo('entity:delete:item')
 
 $type = $entity->getType()
 
 $subtype = $entity->getSubtype()
 
 $container = $entity->getContainerEntity()
 
if(!$entity->delete(true, true)) $forward_url = get_input('forward_url')
 
if(!empty($forward_url)) if(empty($forward_url)) $success_keys
 
 $message = ''
 

Variable Documentation

$container = $entity->getContainerEntity()

Definition at line 23 of file delete.php.

if (!$entity instanceof\ElggEntity) if (!$entity->canDelete()||$entity instanceof\ElggPlugin||$entity instanceof\ElggSite||$entity instanceof\ElggUser) $display_name = $entity->getDisplayName() ?: elgg_echo('entity:delete:item')

Definition at line 19 of file delete.php.

$entity
Initial value:
return get_entity($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_entity(int $guid)
Loads and returns an entity object from a guid.
Definition: entities.php:70
const ELGG_SHOW_DELETED_ENTITIES
Definition: constants.php:127
$guid
Delete a user.
Definition: delete.php:10

Definition at line 7 of file delete.php.

if (!$entity->delete(true, true)) $forward_url = get_input('forward_url')

Definition at line 30 of file delete.php.

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

Default entity delete action.

Definition at line 6 of file delete.php.

$message = ''

Definition at line 86 of file delete.php.

$subtype = $entity->getSubtype()
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 22 of file delete.php.

if (!empty($forward_url)) if (empty($forward_url)) $success_keys
Initial value:
= [
"entity:delete:{$type}:{$subtype}:success",
"entity:delete:{$type}:success",
'entity:delete:success',
]

Definition at line 80 of file delete.php.

$type = $entity->getType()
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 21 of file delete.php.