Zend_ProgressBar offers an interface for multiple enviroments.

category Zend
package Zend_ProgressBar
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Create a new progressbar backend.

__construct(\Zend_ProgressBar_Adapter $adapter, float $min = 0, float $max = 100, string $persistenceNamespace = null

Parameters

$adapter

\Zend_ProgressBar_Adapter

$min

float

$max

float

$persistenceNamespace

string

Exceptions

\Zend_ProgressBar_Exception When $min is greater than $max

Call the adapters finish() behaviour

finish() : void

Get the current adapter

getAdapter() : \Zend_ProgressBar_Adapter

Returns

\Zend_ProgressBar_Adapter

Update the progressbar to the next value

next($diff = 1, string $text = null) : void

Parameters

$diff

$text

string

Update the progressbar

update(float $value = null, string $text = null) : void

Parameters

$value

float

$text

string

 Properties

 

Adapter for the output

$_adapter : \Zend_ProgressBar_Adapter

Default

 

Current value

$_current : float

Default

 

Max value

$_max : float

Default

 

Min value

$_min : float

Default

 

Namespace for keeping the progressbar persistent

$_persistenceNamespace : string

Default

null
 

Start time of the progressbar, required for ETA

$_startTime : integer

Default

 

Current status text

$_statusText : string

Default

null