Elgg  Version 5.1
Variables
pending.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 
if(!$entity instanceof ElggUpgrade$batch = $entity->getBatch()
 
if(!$batch||$batch->shouldBeSkipped()) $count = $batch->countItems()
 
 $data
 
 $timer = elgg_format_element('span', ['class' => 'upgrade-timer'], '00:00:00')
 
 $counter
 
 $progressbar
 
 $errors_link
 
 $errors
 
 $params
 

Variable Documentation

if (!$entity instanceof ElggUpgrade) $batch = $entity->getBatch()

Definition at line 15 of file pending.php.

if (!$batch||$batch->shouldBeSkipped()) $count = $batch->countItems()

Definition at line 21 of file pending.php.

$counter
Initial value:
= elgg_format_element('span', ['class' => 'upgrade-counter float-alt'],
$count === Batch::UNKNOWN_COUNT ? '0/???' : "0/{$count}"
)
if(!$batch||$batch->shouldBeSkipped()) $count
Definition: pending.php:21
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145

Definition at line 30 of file pending.php.

$data
Initial value:
'class' => 'upgrade-data hidden',
'data-total' => $count,
])
if(!$batch||$batch->shouldBeSkipped()) $count
Definition: pending.php:21
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145

Definition at line 23 of file pending.php.

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

Definition at line 10 of file pending.php.

$errors
Initial value:
'id' => "upgrade-errors-{$entity->guid}",
'class' => 'upgrade-messages elgg-message elgg-state-error hidden',
])
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145

Definition at line 44 of file pending.php.

$errors_link
Initial value:
= elgg_view('output/url', [
'href' => "#upgrade-errors-{$entity->guid}",
'text' => elgg_echo('upgrade:error_count', [0]),
'class' => ['elgg-toggle', 'upgrade-error-counter'],
])
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:177

Definition at line 38 of file pending.php.

$params
Initial value:
= [
'entity' => $entity
$entity
Definition: pending.php:10

Definition at line 49 of file pending.php.

$progressbar
Initial value:
'class' => 'elgg-progressbar',
])
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145

Definition at line 34 of file pending.php.

$timer = elgg_format_element('span', ['class' => 'upgrade-timer'], '00:00:00')
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 28 of file pending.php.