ProgressHelper deprecated
class ProgressHelper extends Helper
deprecated
The Progress class provides helpers to display progress output.
Constants
FORMAT_QUIET |
|
FORMAT_NORMAL |
|
FORMAT_VERBOSE |
|
FORMAT_QUIET_NOMAX |
|
FORMAT_NORMAL_NOMAX |
|
FORMAT_VERBOSE_NOMAX |
|
Methods
Returns the length of a string, using mb_strwidth if it is available.
No description
Sets the progress bar width.
Sets the bar character.
Sets the empty bar character.
Sets the progress bar character.
Sets the progress bar format.
Sets the redraw frequency.
Advances the progress output X steps.
Sets the current progress.
Outputs the current progress string.
Removes the progress bar from the current line.
Finishes the progress output.
Returns the canonical name of this helper.
Details
in Helper at line line 30
setHelperSet(HelperSet $helperSet = null)
Sets the helper set associated with this helper.
in Helper at line line 52
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
in Helper at line line 61
static
formatTime($secs)
in Helper at line line 88
static
formatMemory($memory)
in Helper at line line 105
static
strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
at line line 122
__construct($triggerDeprecationError = true)
at line line 134
setBarWidth(int $size)
Sets the progress bar width.
at line line 144
setBarCharacter(string $char)
Sets the bar character.
at line line 154
setEmptyBarCharacter(string $char)
Sets the empty bar character.
at line line 164
setProgressCharacter(string $char)
Sets the progress bar character.
at line line 174
setFormat(string $format)
Sets the progress bar format.
at line line 184
setRedrawFrequency(int $freq)
Sets the redraw frequency.
at line line 195
start(OutputInterface $output, int|null $max = null)
Starts the progress output.
at line line 242
advance(int $step = 1, bool $redraw = false)
Advances the progress output X steps.
at line line 255
setCurrent(int $current, bool $redraw = false)
Sets the current progress.
at line line 288
display(bool $finish = false)
Outputs the current progress string.
at line line 308
clear()
Removes the progress bar from the current line.
This is useful if you wish to write some output while a progress bar is running. Call display() to show the progress bar again.
at line line 316
finish()
Finishes the progress output.
at line line 462
string
getName()
Returns the canonical name of this helper.