Elgg  Version master
Variables
chooserestoredestination.php File Reference

Go to the source code of this file.

Variables

 $entity_guid = (int) get_input('entity_guid')
 
 $entity
 
if(! $entity instanceof \ElggEntityif (! $entity->canEdit())
 
 $owner = $entity->getOwnerEntity()
 
if($owner instanceof \ElggUser && $owner->getGroups(['count'=> true])) else
 
 $footer
 

Variable Documentation

◆ $entity

$entity
Initial value:
})
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 12 of file chooserestoredestination.php.

◆ $entity_guid

$entity_guid = (int) get_input('entity_guid')

Definition at line 11 of file chooserestoredestination.php.

◆ $footer

$footer
Initial value:
'#type' => 'submit',
'text' => elgg_echo('save'),
'confirm' => elgg_echo('restoreandmoveconfirm'),
])
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1112

Definition at line 75 of file chooserestoredestination.php.

◆ $owner

$owner = $entity->getOwnerEntity()

Definition at line 29 of file chooserestoredestination.php.

◆ else

if ( $owner instanceof \ElggUser &&$owner->getGroups([ 'count'=> true])) else
Initial value:
{
echo elgg_view('output/longtext', [
'value' => elgg_echo('trash:restore:container:owner'),
])
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
Definition: views.php:156

Definition at line 63 of file chooserestoredestination.php.

◆ if

if (! $entity instanceof \ElggEntity) if(! $entity->canEdit()) ( ! $entity->  canEdit())

Definition at line 19 of file chooserestoredestination.php.