progress_bar
progress_bar copied to clipboard
CakePHP shell task for creating a simple progress bar
/*
- CakePHP Progress Bar Shell Task
- Copyright (c) 2010 Matt Curry
- www.PseudoCoder.com
- http://github.com/mcurry/progress_bar
- @author Matt Curry [email protected]
- @license MIT
*/
/* Description */ A shell task for showing a simple progress bar.
/* Instructions */
- Download the plugin to app/plugins/progress_bar.
- Include the task in your shell. var $tasks = array('ProgressBar');
- Start the progress bar by calling ProgressBar::start with the total number of whatever you are processing. $this->ProgressBar->start(count($loops));
- Within each loop: $this->ProgressBar->next(); Or to set it to any point: $this->ProgressBar->set($done);