Create a progress bar using a supplied callback.
$_progress
protected integer
$_total
protected integer
$_width
protected integer
increment( integer $num 1 )
Increment the progress bar.
$num
optional 1 init( array $args array() )
Initialize the progress bar for use.
total
The total number of items in the progress bar. Defaults to 100.width
The width of the progress bar. Defaults to 80.$args
optional array() output( array $args )
Output a progress bar.
Takes a number of options to customize the behavior:
total
The total number of items in the progress bar. Defaults to 100.width
The width of the progress bar. Defaults to 80.callback
The callback that will be called in a loop to advance the progress bar.$args
__construct( ConsoleOutput $consoleOutput , array $config array() )
Constructor.
ConsoleOutput
$consoleOutput
$config
optional array() config( null $config null )
Initialize config & store config values
$config
optional null
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/2.8/class-ProgressShellHelper.html