Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
object
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
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
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition:
views.php:156
$entity
$entity
ElggUpgrade view.
Definition:
elgg_upgrade.php:6
ElggUpgrade
Represents an upgrade that runs outside of the upgrade.php script.
Definition:
ElggUpgrade.php:26
$vars
$vars
Definition:
theme.php:5
Generated on Sat Dec 21 2024 00:02:54 for Elgg by
1.8.11