Elgg  Version master
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

◆ $batch

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

Definition at line 15 of file pending.php.

◆ $count

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

Definition at line 21 of file pending.php.

◆ $counter

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

Definition at line 30 of file pending.php.

◆ $data

$data
Initial value:
'class' => 'upgrade-data hidden',
'data-total' => $count,
])

Definition at line 23 of file pending.php.

◆ $entity

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

Definition at line 10 of file pending.php.

◆ $errors

$errors
Initial value:
'id' => "upgrade-errors-{$entity->guid}",
'class' => 'upgrade-messages elgg-message elgg-state-error hidden',
])

Definition at line 44 of file pending.php.

◆ $errors_link

$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:156

Definition at line 38 of file pending.php.

◆ $params

$params
Initial value:
= [
'entity' => $entity,
'title' => $entity->getDisplayName(),
'subtitle' => elgg_echo($entity->description),
]
$data
Definition: pending.php:23
$entity
Definition: pending.php:10
$errors_link
Definition: pending.php:38
$errors
Definition: pending.php:44
$progressbar
Definition: pending.php:34
$counter
Definition: pending.php:30
$timer
Definition: pending.php:28

Definition at line 49 of file pending.php.

◆ $progressbar

$progressbar
Initial value:
'class' => 'elgg-progressbar',
])

Definition at line 34 of file pending.php.

◆ $timer

$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.