|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($html_id= '', $width=500, $autostart=false) | |
| create () | |
| update_full ($percent, $msg) | |
| update ($cur, $total, $msg) | |
| restart () | |
Definition at line 2820 of file weblib.php.
| __construct | ( | $ | html_id = '', |
| $ | width = 500, |
||
| $ | autostart = false |
||
| ) |
Constructor
| string | $html_id | |
| int | $width | |
| bool | $autostart | Default to false |
Definition at line 2840 of file weblib.php.

| create | ( | ) |
Create a new progress bar, this function will output html.
Definition at line 2859 of file weblib.php.


| restart | ( | ) |
Restart the progress bar.
Definition at line 2971 of file weblib.php.
| update | ( | $ | cur, |
| $ | total, | ||
| $ | msg | ||
| ) |
Update progress bar according the number of tasks
| int | $cur | current task number |
| int | $total | total task number |
| string | $msg | message |
Definition at line 2963 of file weblib.php.

| update_full | ( | $ | percent, |
| $ | msg | ||
| ) |
Update progress bar according percent
| int | $percent | from 1-100 |
| string | $msg | the message needed to be shown |
Definition at line 2951 of file weblib.php.
