Elgg  Version 6.1
Variables
trash.php File Reference

Go to the source code of this file.

Variables

 $guid = (int) get_input('guid')
 Default entity trash action. More...
 
 $entity = get_entity($guid)
 
if(!$entity instanceof\ElggEntity) if(!$entity->canDelete()||!$entity->hasCapability('restorable')||$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, false)) $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 21 of file trash.php.

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

Definition at line 17 of file trash.php.

$entity = get_entity($guid)

Definition at line 7 of file trash.php.

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

Definition at line 28 of file trash.php.

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

Default entity trash action.

Definition at line 6 of file trash.php.

$message = ''

Definition at line 84 of file trash.php.

$subtype = $entity->getSubtype()

Definition at line 20 of file trash.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 78 of file trash.php.

$type = $entity->getType()

Definition at line 19 of file trash.php.