Elgg  Version 3.0
elgg_upgrade.php
Go to the documentation of this file.
1 <?php
6 $entity = elgg_extract('entity', $vars);
7 if (!$entity instanceof ElggUpgrade) {
8  return;
9 }
10 
11 if (!$entity->isCompleted()) {
12  echo elgg_view('object/elgg_upgrade/pending', $vars);
13  return;
14 }
15 
16 echo elgg_view('object/elgg_upgrade/completed', $vars);
$entity
ElggUpgrade view.
Definition: elgg_upgrade.php:6
elgg echo
Translates a string.
Definition: languages.js:43
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
$vars['type']
Definition: save.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246