Elgg  Version master
Variables
completed.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 Completed view of an ElggUpgrade. More...
 
if(! $entity instanceof ElggUpgrade$imprint = []
 
 $started = $entity->getStartTime()
 
if($started > 0) $imprint []
 
 $batch = $entity->getBatch()
 
if(!empty($batch)) $params
 

Variable Documentation

◆ $batch

$batch = $entity->getBatch()

Definition at line 36 of file completed.php.

◆ $entity

$entity = elgg_extract('entity', $vars)

Completed view of an ElggUpgrade.

@uses $vars['entity'] the ElggUpgrade

Definition at line 8 of file completed.php.

◆ $imprint [1/2]

if (! $entity instanceof ElggUpgrade) $imprint = []

Definition at line 13 of file completed.php.

◆ $imprint [2/2]

if ( $started > 0) $imprint[]
Initial value:
= [
'icon_name' => 'flag-checkered',
'content' => elgg_view('output/date', [
'value' => $entity->getCompletedTime(),
'format' => elgg_echo('friendlytime:date_format'),
]),
]
$entity
Completed view of an ElggUpgrade.
Definition: completed.php:8
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
Definition: views.php:156

Definition at line 27 of file completed.php.

◆ $params

$params
Initial value:
= [
'entity' => $entity,
'title' => $entity->getDisplayName(),
'content' => elgg_echo($entity->description),
'imprint' => $imprint,
'byline' => false,
'access' => false,
]
if(! $entity instanceof ElggUpgrade) $imprint
Definition: completed.php:13

Definition at line 54 of file completed.php.

◆ $started

$started = $entity->getStartTime()

Definition at line 15 of file completed.php.