Zend_ProgressBar offers an interface for multiple enviroments.
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
Current value
$_current : float
Namespace for keeping the progressbar persistent
$_persistenceNamespace : string
Start time of the progressbar, required for ETA
$_startTime : integer
Current status text
$_statusText : string