Метод | Описание | |
---|---|---|
__construct ( Symfony\Component\Console\Output\OutputInterface $output, integer $max ) | ||
advance ( integer $step = 1 ) | Advances the progress output X steps. | |
clear ( ) | Removes the progress bar from the current line. | |
display ( ) | Outputs the current progress string. | |
finish ( ) | Finishes the progress output. | |
getBarCharacter ( ) : string | Gets the bar character. | |
getBarWidth ( ) : integer | Gets the progress bar width. | |
getEmptyBarCharacter ( ) : string | Gets the empty bar character. | |
getFormatDefinition ( string $name ) : string | null | Gets the format for a given name. | |
getMaxSteps ( ) : integer | Gets the progress bar maximal steps. | |
getMessage ( $name = 'message' ) | ||
getPlaceholderFormatterDefinition ( string $name ) : callable | null | Gets the placeholder formatter for a given name. | |
getProgress ( ) : integer | Gets the current step position. | |
getProgressCharacter ( ) : string | Gets the progress bar character. | |
getProgressPercent ( ) : float | Gets the current progress bar percent. | |
getStartTime ( ) : integer | Gets the progress bar start time. | |
setBarCharacter ( string $char ) | Sets the bar character. | |
setBarWidth ( integer $size ) | Sets the progress bar width. | |
setEmptyBarCharacter ( string $char ) | Sets the empty bar character. | |
setFormat ( string $format ) | Sets the progress bar format. | |
setFormatDefinition ( string $name, string $format ) | Sets a format for a given name. | |
setMessage ( string $message, string $name = 'message' ) | Associates a text with a named placeholder. | |
setOverwrite ( boolean $overwrite ) | Sets whether to overwrite the progressbar, false for new line. | |
setPlaceholderFormatterDefinition ( string $name, callable $callable ) | Sets a placeholder formatter for a given name. | |
setProgress ( integer $step ) | Sets the current progress. | |
setProgressCharacter ( string $char ) | Sets the progress bar character. | |
setRedrawFrequency ( integer | float $freq ) | Sets the redraw frequency. | |
start ( integer | null $max = null ) | Starts the progress output. |
Метод | Описание | |
---|---|---|
buildLine ( ) : string | ||
determineBestFormat ( ) | ||
getStepWidth ( ) : integer | Gets the progress bar step width. | |
initFormats ( ) | ||
initPlaceholderFormatters ( ) | ||
overwrite ( string $message ) | Overwrites a previous message to the output. | |
setMaxSteps ( integer $max ) | Sets the progress bar maximal steps. | |
setRealFormat ( string $format ) | Sets the progress bar format. |
public __construct ( Symfony\Component\Console\Output\OutputInterface $output, integer $max ) | ||
$output | Symfony\Component\Console\Output\OutputInterface | An OutputInterface instance |
$max | integer | Maximum steps (0 if unknown) |
public clear ( ) |
public getBarCharacter ( ) : string | ||
Результат | string | A character |
public getBarWidth ( ) : integer | ||
Результат | integer | The progress bar size |
public getEmptyBarCharacter ( ) : string | ||
Результат | string | A character |
public getMaxSteps ( ) : integer | ||
Результат | integer | The progress bar max steps |
public getProgress ( ) : integer | ||
Результат | integer | The progress bar step |
public getProgressCharacter ( ) : string | ||
Результат | string | A character |
public getProgressPercent ( ) : float | ||
Результат | float | The current progress bar percent |
public getStartTime ( ) : integer | ||
Результат | integer | The progress bar start time |
public setBarCharacter ( string $char ) | ||
$char | string | A character |
public setBarWidth ( integer $size ) | ||
$size | integer | The progress bar size |
public setEmptyBarCharacter ( string $char ) | ||
$char | string | A character |
public static setFormatDefinition ( string $name, string $format ) | ||
$name | string | The format name |
$format | string | A format string |
public setMessage ( string $message, string $name = 'message' ) | ||
$message | string | The text to associate with the placeholder |
$name | string | The name of the placeholder |
public setOverwrite ( boolean $overwrite ) | ||
$overwrite | boolean |
public static setPlaceholderFormatterDefinition ( string $name, callable $callable ) | ||
$name | string | The placeholder name (including the delimiter char like %) |
$callable | callable | A PHP callable |
public setProgress ( integer $step ) | ||
$step | integer | The current progress |
public setProgressCharacter ( string $char ) | ||
$char | string | A character |
public setRedrawFrequency ( integer | float $freq ) | ||
$freq | integer | float | The frequency in steps |