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

$container = $entity->getContainerEntity()

Definition at line 23 of file delete.php.

◆ $display_name

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

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

Definition at line 7 of file delete.php.

◆ $forward_url

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

Definition at line 30 of file delete.php.

◆ $guid

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

Default entity delete action.

Definition at line 6 of file delete.php.

◆ $message

$message = ''

Definition at line 86 of file delete.php.

◆ $subtype

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

Definition at line 22 of file delete.php.

◆ $success_keys

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

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

Definition at line 21 of file delete.php.