Elgg  Version 7.1
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 \ElggEntity) if (! $entity->canEdit())
 
 $footer
 
 $actor = elgg_get_logged_in_user_entity()
 
 $owner = $entity->getOwnerEntity()
 
if(! $owner instanceof \ElggUser && $actor->getGroups(['count'=> true])) elseif($owner instanceof \ElggUser && $owner->getGroups(['count'=> true])) elseif($owner?->canWriteToContainer($owner->guid, $entity->type, $entity->subtype)) else
 

Variable Documentation

◆ $actor

Definition at line 35 of file chooserestoredestination.php.

◆ $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:300
get_entity(int $guid)
Loads and returns an entity object from a guid.
Definition: entities.php:68

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:1164

Definition at line 29 of file chooserestoredestination.php.

◆ $owner

$owner = $entity->getOwnerEntity()

Definition at line 36 of file chooserestoredestination.php.

◆ else

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

Definition at line 100 of file chooserestoredestination.php.

◆ if

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

Definition at line 19 of file chooserestoredestination.php.