Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Traits
Cli
Progressing.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Traits\Cli
;
4
5
use
Symfony\Component\Console\Helper\ProgressBar
;
6
12
trait
Progressing
{
13
17
protected
$progress;
18
26
public
function
setProgressBar
(ProgressBar $progress) {
27
$this->progress = $progress;
28
}
29
36
public
function
advance
(
int
$step
= 1) {
37
$this->progress?->advance(
$step
);
38
}
39
}
Elgg\Traits\Cli
Definition:
PluginsHelper.php:3
Elgg\Traits\Cli\setProgressBar
setProgressBar(ProgressBar $progress)
Set progress bar helper.
Definition:
Progressing.php:26
Progressing
ProgressBar
$step
$step
Definition:
time.php:40
Elgg\Traits\Cli\advance
advance(int $step=1)
Advance progressbar.
Definition:
Progressing.php:36
Generated on Wed Dec 4 2024 00:00:21 for Elgg by
1.8.11