Elgg  Version 6.0
Variables
restore.php File Reference

Go to the source code of this file.

Variables

 $guid = (int) get_input('guid')
 Default entity restore action. More...
 
 $entity
 
if(!$entity instanceof\ElggEntity||!$entity->isDeleted()) if(!$entity->canEdit()) $display_name = $entity->getDisplayName() ?: elgg_echo('entity:restore:item')
 
if(!$entity->restore()) $success_keys
 
 $message = ''
 

Variable Documentation

if (!$entity instanceof\ElggEntity||!$entity->isDeleted()) if (!$entity->canEdit()) $display_name = $entity->getDisplayName() ?: elgg_echo('entity:restore:item')

Definition at line 19 of file restore.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
$guid
Default entity restore action.
Definition: restore.php:6
const ELGG_SHOW_DISABLED_ENTITIES
Definition: constants.php:132
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:136

Definition at line 7 of file restore.php.

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

Default entity restore action.

Definition at line 6 of file restore.php.

$message = ''

Definition at line 31 of file restore.php.

if (!$entity->restore()) $success_keys
Initial value:
= [
"entity:restore:{$entity->type}:{$entity->subtype}:success",
"entity:restore:{$entity->type}:success",
'entity:restore:success',
]

Definition at line 25 of file restore.php.