Elgg  Version 3.0
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"
)
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:168
if(!$batch||$batch->shouldBeSkipped()) $count
Definition: pending.php:21

Definition at line 31 of file pending.php.

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

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($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:168
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 46 of file pending.php.

$errors_link
Initial value:
= elgg_view('output/url', [
'href' => "#upgrade-errors-{$entity->guid}",
'text' => elgg_echo('upgrade:error_count', [0]),
'rel' => 'toggle',
'class' => 'upgrade-error-counter',
])
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246

Definition at line 39 of file pending.php.

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

Definition at line 51 of file pending.php.

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

Definition at line 35 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 29 of file pending.php.