Name
HTML_Progress2::addLabel
— Add a
new label to the progress meter
Synopsis
require_once 'HTML/Progress2.php';
void HTML_Progress2::addLabel(
|
$type,
|
|
|
$name,
|
|
|
$value = ' ') ;
|
|
string
|
$type;
|
string
|
$name;
|
string
|
$value = ' ';
|
Description
Defines a new label identifier choosen between five categories:
-
HTML_PROGRESS2_LABEL_TEXT
constant
if you want a simple text zone
-
HTML_PROGRESS2_LABEL_BUTTON
constant if you want a form button
-
HTML_PROGRESS2_LABEL_STEP
constant
if you want a step resume progress
-
HTML_PROGRESS2_LABEL_PERCENT
constant if you want current progress value
-
HTML_PROGRESS2_LABEL_CROSSBAR
constant if you want a little javascript animation
Parameter
-
string
$type
-
Label type (text,button,step,percent,crossbar)
-
string
$value
-
(optional) default label value
Throws
throws
HTML_PROGRESS2_ERROR_INVALID_INPUT
Note
since 2.0.0
This function can not be called statically.