Elgg  Version 5.1
Go to the documentation of this file.
1 <?php
6 $entity = elgg_extract('entity', $vars);
7 if (!$entity instanceof ElggUpgrade) {
8  return;
9 }
11 if (!$entity->isCompleted()) {
12  echo elgg_view('object/elgg_upgrade/pending', $vars);
13  return;
14 }
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:177
ElggUpgrade view.
Definition: elgg_upgrade.php:6
Represents an upgrade that runs outside of the upgrade.php script.
Definition: ElggUpgrade.php:26
Definition: theme.php:5