Elgg
Version 5.1
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
16
protected
$output
;
17
23
public
function
__construct
(OutputInterface
$output
) {
24
$this->output =
$output
;
25
}
26
35
public
function
start
($process,
$max
= 0) {
36
$this->output->writeln($process);
37
38
return
new
ProgressBar($this->output,
$max
);
39
}
40
47
public
function
finish
(ProgressBar $progress) {
48
$progress->finish();
49
$this->output->writeln(
''
);
50
}
51
}
Elgg\Cli\Progress\$output
$output
Definition:
Progress.php:16
Elgg\Cli\Progress\finish
finish(ProgressBar $progress)
Finish a process.
Definition:
Progress.php:47
Elgg\Cli\Progress
CLI Progress reporter.
Definition:
Progress.php:11
OutputInterface
Elgg\Cli\Progress\start
start($process, $max=0)
Start a new process.
Definition:
Progress.php:35
ProgressBar
Elgg\Cli
Definition:
Application.php:3
$max
$max
Definition:
time.php:37
Elgg\Cli\Progress\__construct
__construct(OutputInterface $output)
Constructor.
Definition:
Progress.php:23
Generated on Sat Dec 9 2023 00:00:24 for Elgg by
1.8.11