This lovely little class will print a semi-accurate series of asterisks as a
status bar for anything you want(written for the importer system). The idea is that you give it a total number of objects and a level of detail, then make sure that you update statistics when one of your total is done, and it will print directly to the end user the status of the process. Don't forget to use a javascript re-direct at the end of your process, otherwise you'll have header problems.
Located in /harmoni/core/utilities/StatusStars.class.php (line 29)
| Class | Description |
|---|---|
| CLIStatusStars | A command-line-environment of status stars. This class will not output HTML. |
Start a new line
Gathers the total number of granules for importer status
Start a new line
Updates the number of granules imported for importer status
Prints the right number of Spaces
Climbs down the ob ladder and saves the data to put back later
Climps back up the ob ladder adding back the data that was there
Updates the statys bar for the user
Documentation generated on Wed, 19 Sep 2007 10:26:42 -0400 by phpDocumentor 1.3.0RC3