Class: HTML_Progress
Source Location: /Progress.php
Class Details
[line 207]
Class Methods
constructor HTML_Progress [line 382]
HTML_Progress HTML_Progress(
object
$model, int
$orient, int
$min, int
$max, array
$errorPrefs)
|
|
Constructor Summary - Creates a natural horizontal progress bar that displays ten cells/units
with no border and no progress string.
The initial and minimum values are 0, and the maximum is 100.
- Creates a natural progress bar with the specified orientation, which can be
either HTML_PROGRESS_BAR_HORIZONTAL or HTML_PROGRESS_BAR_VERTICAL
By default, no border and no progress string are painted.
The initial and minimum values are 0, and the maximum is 100.
- Creates a natural horizontal progress bar with the specified minimum and
maximum. Sets the initial value of the progress bar to the specified
minimum, and the maximum that the progress bar can reach.
By default, no border and no progress string are painted.
- Creates a natural horizontal progress bar with the specified orientation,
minimum and maximum. Sets the initial value of the progress bar to the
specified minimum, and the maximum that the progress bar can reach.
By default, no border and no progress string are painted.
- Creates a natural horizontal progress that uses the specified model
to hold the progress bar's data.
By default, no border and no progress string are painted.
Tags:
Parameters:
method addListener [line 1503]
boolean addListener(
object
$observer)
|
|
Adds a HTML_Progress_Observer instance to the list of observers that are listening for messages emitted by this HTML_Progress instance.
Tags:
Parameters:
method apiVersion [line 491]
Returns the current API version
Tags:
method display [line 1291]
Renders the new value of progress bar.
Tags:
method getAnimSpeed [line 1055]
Returns delay execution of the progress bar
Tags:
method getDM [line 669]
Returns the data model used by this progress bar.
Tags:
method getError [line 2250]
Pop an error off of the HTML_Progress stack
Tags:
method getIdent [line 1453]
Returns the current identification string.
Tags:
method getIncrement [line 800]
Returns the progress bar's increment value stored in the progress bar's data model. The default value is +1.
Tags:
method getListeners [line 1485]
Returns an array of all the listeners added to this progress bar.
Tags:
method getMaximum [line 759]
Returns the progress bar's maximum value stored in the progress bar's data model. The default value is 100.
Tags:
method getMinimum [line 718]
Returns the progress bar's minimum value stored in the progress bar's data model. The default value is 0.
Tags:
method getPercentComplete [line 893]
float getPercentComplete(
)
|
|
Returns the percent complete for the progress bar. Note that this number is between 0.00 and 1.00.
Tags:
method getScript [line 1128]
Get the javascript code to manage progress bar.
Tags:
method getString [line 632]
Returns the current value of the progress string. By default, the progress bar displays the value returned by getPercentComplete() method formatted as a percent such as 33%.
Tags:
method getStyle [line 1107]
Get the cascading style sheet to put inline on HTML document
Tags:
method getUI [line 906]
Returns the look-and-feel object that renders the progress bar.
Tags:
method getValue [line 835]
Returns the progress bar's current value, which is stored in the progress bar's data model. The value is always between the minimum and maximum values, inclusive. By default, the value is initialized to be equal to the minimum value.
Tags:
method hasErrors [line 2236]
Determine whether there are errors into the HTML_Progress stack
Tags:
method hide [line 1337]
Hides the progress bar.
Tags:
method incValue [line 876]
Updates the progress bar's current value by adding increment value. All change listeners are notified.
Tags:
method isBorderPainted [line 548]
boolean isBorderPainted(
)
|
|
Determines whether the progress bar border is painted or not. The default is false.
Tags:
method isIndeterminate [line 505]
boolean isIndeterminate(
)
|
|
Returns mode of the progress bar (determinate or not).
Tags:
method isStringPainted [line 591]
boolean isStringPainted(
)
|
|
Determines whether the progress bar string is painted or not. The default is false. The progress bar displays the value returned by getPercentComplete() method formatted as a percent such as 33%.
Tags:
method process [line 1409]
Performs the progress actions
Tags:
method raiseError [line 2167]
NULL|PEAR_Error raiseError(
integer
$code, string
$level, array
$params)
|
|
Add an error to the stack
Tags:
Parameters:
method removeListener [line 1525]
boolean removeListener(
object
$observer)
|
|
Removes a HTML_Progress_Observer instance from the list of observers.
Tags:
Parameters:
method run [line 1429]
Runs the progress bar (both modes: indeterminate and determinate), and execute all actions defined in user callback identified by method setProgressHandler.
Tags:
method setAnimSpeed [line 1072]
void setAnimSpeed(
integer
$delay)
|
|
Set the delays progress bar execution for the given number of miliseconds.
Tags:
Parameters:
method setBorderPainted [line 566]
void setBorderPainted(
boolean
$paint)
|
|
Sets the value of $_paintBorder property, which determines whether the progress bar should paint its border. The default is false.
Tags:
Parameters:
method setDM [line 685]
void setDM(
string
$model)
|
|
Sets the data model used by this progress bar.
Tags:
Parameters:
method setIdent [line 1467]
void setIdent(
[mixed
$ident = null])
|
|
Sets this Progress instance's identification string.
Tags:
Parameters:
method setIncrement [line 817]
void setIncrement(
integer
$inc)
|
|
Sets the progress bar's increment value stored in the progress bar's data model.
Tags:
Parameters:
method setIndeterminate [line 526]
void setIndeterminate(
boolean
$continuous)
|
|
Sets the $_indeterminate property of the progress bar, which determines whether the progress bar is in determinate or indeterminate mode. An indeterminate progress bar continuously displays animation indicating that an operation of unknown length is occuring. By default, this property is false.
Tags:
Parameters:
method setMaximum [line 778]
void setMaximum(
integer
$max)
|
|
Sets the progress bar's maximum value stored in the progress bar's data model. If the maximum value is different from previous maximum, all change listeners are notified.
Tags:
Parameters:
method setMinimum [line 737]
void setMinimum(
integer
$min)
|
|
Sets the progress bar's minimum value stored in the progress bar's data model. If the minimum value is different from previous minimum, all change listeners are notified.
Tags:
Parameters:
method setModel [line 957]
void setModel(
string
$file, string
$type)
|
|
Sets the look-and-feel model that renders the progress bar.
Tags:
Parameters:
method setProgressHandler [line 1389]
void setProgressHandler(
mixed
$handler)
|
|
Sets the user callback function that execute all actions pending progress
Tags:
Parameters:
method setString [line 656]
void setString(
string
$str)
|
|
Sets the current value of the progress string. By default, this string is null. If you have provided a custom progress string and want to revert to the built-in-behavior, set the string back to null. The progress string is painted only if the isStringPainted() method returns true.
Tags:
Parameters:
method setStringPainted [line 609]
void setStringPainted(
boolean
$paint)
|
|
Sets the value of $_paintString property, which determines whether the progress bar should render a progress string. The default is false.
Tags:
Parameters:
method setUI [line 922]
Sets the look-and-feel object that renders the progress bar.
Tags:
Parameters:
method setValue [line 854]
void setValue(
integer
$val)
|
|
Sets the progress bar's current value stored in the progress bar's data model. If the new value is different from previous value, all change listeners are notified.
Tags:
Parameters:
method sleep [line 1366]
method toArray [line 1142]
Returns the progress bar structure in an array.
Tags:
method toHtml [line 1180]
Returns the progress structure as HTML.
Tags:
|
|