Class: HTML_Progress
Source Location: /Progress.php
HTML loading bar with only PHP and JS interface.
Author(s):
Version:
- Release: @package_version@
Copyright:
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Methods
constructor HTML_Progress [line 388]
HTML_Progress HTML_Progress(
object
$model, int
$orient, int
$min, int
$max, array
$errorPrefs)
|
|
Constructor Summary
Tags:
Parameters:
method addListener [line 1488]
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 497]
Returns the current API version
Tags:
method display [line 1278]
Renders the new value of progress bar.
Tags:
method getAnimSpeed [line 1043]
Returns delay execution of the progress bar
Tags:
method getDM [line 667]
Returns the data model used by this progress bar.
Tags:
method getError [line 2234]
Pop an error off of the HTML_Progress stack
Tags:
method getIdent [line 1440]
Returns the current identification string.
Tags:
method getIncrement [line 793]
Returns the progress bar's increment value stored in the progress bar's data model. The default value is +1.
Tags:
method getListeners [line 1471]
Returns an array of all the listeners added to this progress bar.
Tags:
method getMaximum [line 754]
Returns the progress bar's maximum value stored in the progress bar's data model. The default value is 100.
Tags:
method getMinimum [line 715]
Returns the progress bar's minimum value stored in the progress bar's data model. The default value is 0.
Tags:
method getPercentComplete [line 883]
mixed getPercentComplete(
[boolean
$float = true])
|
|
Returns the percent complete for the progress bar. Note that this number is between 0.00 and 1.00 or 0 and 100.
Tags:
Parameters:
method getScript [line 1115]
Get the javascript code to manage progress bar.
Tags:
method getString [line 631]
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 1093]
Get the cascading style sheet to put inline on HTML document
Tags:
method getUI [line 896]
Returns the look-and-feel object that renders the progress bar.
Tags:
method getValue [line 826]
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 2220]
Determine whether there are errors into the HTML_Progress stack
Tags:
method hide [line 1324]
Hides the progress bar.
Tags:
method incValue [line 865]
Updates the progress bar's current value by adding increment value. All change listeners are notified.
Tags:
method isBorderPainted [line 551]
boolean isBorderPainted(
)
|
|
Determines whether the progress bar border is painted or not. The default is false.
Tags:
method isIndeterminate [line 510]
boolean isIndeterminate(
)
|
|
Returns mode of the progress bar (determinate or not).
Tags:
method isStringPainted [line 592]
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 1396]
Performs the progress actions
Tags:
method raiseError [line 2151]
NULL|PEAR_Error raiseError(
integer
$code, string
$level, array
$params)
|
|
Add an error to the stack
Tags:
Parameters:
method removeListener [line 1509]
boolean removeListener(
object
$observer)
|
|
Removes a HTML_Progress_Observer instance from the list of observers.
Tags:
Parameters:
method run [line 1416]
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 1059]
void setAnimSpeed(
integer
$delay)
|
|
Set the delays progress bar execution for the given number of miliseconds.
Tags:
Parameters:
method setBorderPainted [line 568]
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 683]
void setDM(
string
$model)
|
|
Sets the data model used by this progress bar.
Tags:
Parameters:
method setIdent [line 1454]
void setIdent(
[mixed
$ident = null])
|
|
Sets this Progress instance's identification string.
Tags:
Parameters:
method setIncrement [line 809]
void setIncrement(
integer
$inc)
|
|
Sets the progress bar's increment value stored in the progress bar's data model.
Tags:
Parameters:
method setIndeterminate [line 530]
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 772]
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 733]
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 946]
void setModel(
string
$file, string
$type)
|
|
Sets the look-and-feel model that renders the progress bar.
Tags:
Parameters:
method setProgressHandler [line 1376]
void setProgressHandler(
mixed
$handler)
|
|
Sets the user callback function that execute all actions pending progress
Tags:
Parameters:
method setString [line 654]
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 912]
Sets the look-and-feel object that renders the progress bar.
Tags:
Parameters:
method setValue [line 844]
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 1353]
method toArray [line 1129]
Returns the progress bar structure in an array.
Tags:
method toHtml [line 1167]
Returns the progress structure as HTML.
Tags:
|
|