Elgg  Version 6.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);
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$entity
ElggUpgrade view.
Definition: elgg_upgrade.php:6
Represents an upgrade that runs outside of the upgrade.php script.
Definition: ElggUpgrade.php:26
$vars
Definition: theme.php:5