Elgg  Version master
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

$container = $entity->getContainerEntity()

Definition at line 21 of file trash.php.

◆ $display_name

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

$entity = get_entity($guid)

Definition at line 7 of file trash.php.

◆ $forward_url

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

Definition at line 28 of file trash.php.

◆ $guid

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

Default entity trash action.

Definition at line 6 of file trash.php.

◆ $message

$message = ''

Definition at line 84 of file trash.php.

◆ $subtype

$subtype = $entity->getSubtype()

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

◆ $type

$type = $entity->getType()

Definition at line 19 of file trash.php.