Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Cli
Progress.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Cli
;
4
5
use
Symfony\Component\Console\Helper\ProgressBar
;
6
use
Symfony\Component\Console\Output\OutputInterface
;
7
11
class
Progress
{
12
18
public
function
__construct
(
protected
OutputInterface
$output
) {
19
}
20
29
public
function
start
($process,
$max
= 0) {
30
$this->output->writeln($process);
31
32
return
new
ProgressBar($this->output,
$max
);
33
}
34
41
public
function
finish
(ProgressBar $progress) {
42
$progress->finish();
43
$this->output->writeln(
''
);
44
}
45
}
Elgg\Cli\Progress\finish
finish(ProgressBar $progress)
Finish a process.
Definition:
Progress.php:41
Elgg\Cli\Progress
CLI Progress reporter.
Definition:
Progress.php:11
Elgg\Cli\Progress\__construct
__construct(protected OutputInterface $output)
Constructor.
Definition:
Progress.php:18
OutputInterface
Elgg\Cli\Progress\start
start($process, $max=0)
Start a new process.
Definition:
Progress.php:29
ProgressBar
Elgg\Cli
Definition:
Application.php:3
$max
$max
Definition:
time.php:37
$output
$output
Definition:
download.php:9
Generated on Thu Oct 31 2024 00:13:41 for Elgg by
1.8.11