|
Text UI
A simple and fast way to take user input and display output in text mode using PHP.
|
Public Member Functions | |
| __construct () | |
| setLabel (string $label) | |
| init (string $label) | |
| update () | |
| end (string $indicator='Ok') | |
Protected Member Functions | |
| padLabel (string $label, int $indicatorWidth) | |
Protected Attributes | |
| string | $label = '' |
| array | $indicators |
| int | $currentIndicatorIndex = 0 |
Loader and dynamic labels to indicate that a particular task is running.
Definition at line 14 of file Loader.php.
| __construct | ( | ) |
Definition at line 45 of file Loader.php.
| end | ( | string | $indicator = 'Ok' | ) |
Indicates task completion by displaying a custom indicator. Defaults is "Ok".
| string | $indicator |
Definition at line 119 of file Loader.php.
| init | ( | string | $label | ) |
Starts the loader with an initial label that can be changed during task execution with Loader::setLabel().
| string | $label |
Definition at line 68 of file Loader.php.
|
protected |
| string | $label | |
| int | $indicatorWidth |
Definition at line 105 of file Loader.php.
| setLabel | ( | string | $label | ) |
Sets a label for the task.
| string | $label |
Definition at line 55 of file Loader.php.
| update | ( | ) |
Updates the task, changing the loader and label.
Definition at line 80 of file Loader.php.
|
protected |
Definition at line 43 of file Loader.php.
|
protected |
Definition at line 21 of file Loader.php.
|
protected |
Definition at line 16 of file Loader.php.