Elgg  Version 7.1
Variables
elgg_upgrade.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 ElggUpgrade view. More...
 
if(! $entity instanceof \ElggUpgrade) $component = $entity->getComponent()
 
 $version = $entity->getVersion()
 
 $description = elgg_echo("{$component}:upgrade:{$version}:description")
 
 $plugin = $component !== 'core' ? elgg_get_plugin_from_id($component) : null
 
 $vars ['title'] = ($plugin instanceof \ElggPlugin ? $plugin->getDisplayName() . ': ' : '') . $entity->getDisplayName()
 
if(! $entity->isCompleted()) $vars ['content'] = $description
 

Variable Documentation

◆ $component

if (! $entity instanceof \ElggUpgrade) $component = $entity->getComponent()

Definition at line 11 of file elgg_upgrade.php.

◆ $description

$description = elgg_echo("{$component}:upgrade:{$version}:description")

Definition at line 14 of file elgg_upgrade.php.

◆ $entity

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

ElggUpgrade view.

Definition at line 6 of file elgg_upgrade.php.

◆ $plugin

$plugin = $component !== 'core' ? elgg_get_plugin_from_id($component) : null

Definition at line 16 of file elgg_upgrade.php.

◆ $vars [1/2]

if (! $entity->isCompleted()) $vars[ 'content'] = $description

Definition at line 27 of file elgg_upgrade.php.

◆ $vars [2/2]

$vars[ 'title'] = ($plugin instanceof \ElggPlugin ? $plugin->getDisplayName() . ': ' : '') . $entity->getDisplayName()

Definition at line 18 of file elgg_upgrade.php.

◆ $version

$version = $entity->getVersion()

Definition at line 12 of file elgg_upgrade.php.