Constructor
ProgressBar
ProgressBar
([
str $message =
'Working...'], [
bool $hide =
false],
int $sleepOnFinish, [
int $barLength =
300], [
int $precision =
30], [
str $backgroundColor =
'#cccccc'], [
str $foregroundColor =
'#0A0'], [
str $domID =
'progressbar'], [
str $stepElement =
''])
-
str
$message: Message shown above the bar eg. "Please wait...". Default: ''
-
bool
$hide: Hide the bar after completion (with JavaScript). Default: false
-
int
$sleepOnFinish: Seconds to sleep after bar completion. Default: 0
-
int
$barLength: Length in pixels. Default: 200
-
int
$precision: Desired number of steps to show. Default: 20. Precision will become $numElements when greater than $numElements. $barLength will increase if $precision is greater than $barLength.
-
str
$backgroundColor: Color of the bar background
-
str
$foregroundColor: Color of the actual progress-bar
-
str
$domID: Html-Attribute "id" for the bar
-
str
$stepElement: Element the bar is build from
Count steps and increase bar length
void
increase
()
Print the empty progress bar
void
initialize
(int $numElements)
-
int
$numElements: Number of Elements to be processed and number of times $bar->initialize() will be called while processing