__construct()
__destruct()
finish()
getOutputStream()
notify()
setBarIndicatorChar()
setBarLeftChar()
setBarRightChar()
setCharset()
setElements()
setFinishAction()
setOptions()
setOutputStream()
setTextWidth()
setWidth()
_calculateBarWidth()
_outputData()
$barIndicatorChar
$barLeftChar
$barRightChar
$barWidth
$charset
$elements
$finishAction
$outputStarted
$outputStream
$skipOptions
$textWidth
$width
ELEMENT_BAR
ELEMENT_ETA
ELEMENT_PERCENT
ELEMENT_TEXT
FINISH_ACTION_CLEAR_LINE
FINISH_ACTION_EOL
FINISH_ACTION_NONE
Zend\ProgressBar\Adapter\Console offers a text-based progressbar for console applications
__construct(array | \Traversable $options)
$options may be either be an array or a Zend\Config object which specifies adapter related options.
array\Traversable
__destruct()
finish() : void
getOutputStream() : resource
resource
notify(float $current, float $max, float $percent, int $timeTaken, int $timeRemaining, string $text) : void
float
Current progress value
float
Max progress value
float
Current percent value
int
Taken time in seconds
int
Remaining time in seconds
string
Status text
setBarIndicatorChar(string $char) : \Zend\ProgressBar\Adapter\Console
setBarLeftChar(string $char) : \Zend\ProgressBar\Adapter\Console
string
\Zend\ProgressBar\Adapter\Exception\InvalidArgumentException |
When character is empty |
---|
setBarRightChar(string $char) : \Zend\ProgressBar\Adapter\Console
string
\Zend\ProgressBar\Adapter\Exception\InvalidArgumentException |
When character is empty |
---|
setCharset(string $charset)
string
setElements(array $elements) : \Zend\ProgressBar\Adapter\Console
array
\Zend\ProgressBar\Adapter\Exception\InvalidArgumentException |
When an invalid element is found in the array |
---|
setFinishAction(string $action) : \Zend\ProgressBar\Adapter\Console
string
\Zend\ProgressBar\Adapter\Exception\InvalidArgumentException |
When an invalid action is specified |
---|
setOptions(array $options) : \Zend\ProgressBar\Adapter\AbstractAdapter
inherited_from | \Zend\ProgressBar\Adapter\AbstractAdapter::setOptions() |
---|
array
setOutputStream(string $resource) : \Zend\ProgressBar\Adapter\Console
_calculateBarWidth() : void
_outputData(string $data) : void
This split-off is required for unit-testing.
string
$charset : string
$elements : array
$finishAction : string
$outputStarted : bool
$outputStream : resource
in CGI) or set manually
$skipOptions : array
inherited_from | \Zend\ProgressBar\Adapter\AbstractAdapter::$$skipOptions |
---|
$textWidth : string
$width : int
ELEMENT_BAR
ELEMENT_ETA
ELEMENT_PERCENT
ELEMENT_TEXT
FINISH_ACTION_CLEAR_LINE
FINISH_ACTION_EOL
FINISH_ACTION_NONE