Abstract class for Zend\ProgressBar Adapters

package Default

 Methods

Create a new adapter

__construct(array|\Traversable $options = null

$options may be either be an array or a Zend\Config object which specifies adapter related options.

Parameters

$options

array\Traversable

Called when the progress is explicitly finished

finish() : void

Notify the adapter about an update

notify(float $current, float $max, float $percent, integer $timeTaken, integer $timeRemaining, string $text) : void

Parameters

$current

float

Current progress value

$max

float

Max progress value

$percent

float

Current percent value

$timeTaken

integer

Taken time in seconds

$timeRemaining

integer

Remaining time in seconds

$text

string

Status text

Set options via an array

setOptions(array $options) : \Zend\ProgressBar\Adapter\AbstractAdapter

Parameters

$options

array

Returns

\Zend\ProgressBar\Adapter\AbstractAdapter

 Properties

 

Option keys to skip when calling setOptions()

$skipOptions : array

Default

array('options', 'config')