public static startProgress ( integer $done, integer $total, string $prefix = '', integer | boolean $width = null ) | ||
$done | integer | the number of items that are completed. |
$total | integer | the total value of items that are to be done. |
$prefix | string | an optional string to display before the progress bar. Default to empty string which results in no prefix to be displayed. |
$width | integer | boolean | optional width of the progressbar. This can be an integer representing the number of characters to display for the progress bar or a float between 0 and 1 representing the percentage of screen with the progress bar may take. It can also be set to false to disable the bar and only show progress information like percent, number of items and ETA. If not set, the bar will be as wide as the screen. Screen size will be detected using [[getScreenSize()]]. |