|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct ($options=null) | |
| __destruct () | |
| setOutputStream ($resource) | |
| getOutputStream () | |
| setWidth ($width=null) | |
| setElements (array $elements) | |
| setBarLeftChar ($char) | |
| setBarRightChar ($char) | |
| setBarIndicatorChar ($char) | |
| setTextWidth ($width) | |
| setCharset ($charset) | |
| setFinishAction ($action) | |
| notify ($current, $max, $percent, $timeTaken, $timeRemaining, $text) | |
| finish () | |
Public Member Functions inherited from Zend_ProgressBar_Adapter | |
| __construct ($options=null) | |
| setConfig (Zend_Config $config) | |
| setOptions (array $options) | |
| notify ($current, $max, $percent, $timeTaken, $timeRemaining, $text) | |
| finish () | |
Data Fields | |
| const | ELEMENT_PERCENT = 'ELEMENT_PERCENT' |
| const | ELEMENT_BAR = 'ELEMENT_BAR' |
| const | ELEMENT_ETA = 'ELEMENT_ETA' |
| const | ELEMENT_TEXT = 'ELEMENT_TEXT' |
| const | FINISH_ACTION_EOL = 'FINISH_ACTION_EOL' |
| const | FINISH_ACTION_CLEAR_LINE = 'FINISH_ACTION_CLEAR_LINE' |
| const | FINISH_ACTION_NONE = 'FINISH_ACTION_NONE' |
Protected Member Functions | |
| _calculateBarWidth () | |
| _outputData ($data) | |
Protected Attributes | |
| $_width = null | |
| $_elements | |
| $_finishAction = self::FINISH_ACTION_EOL | |
| $_barWidth | |
| $_barLeftChar = '#' | |
| $_barIndicatorChar = '' | |
| $_barRightChar = '-' | |
| $_outputStream = null | |
| $_textWidth = 20 | |
| $_outputStarted = false | |
| $_charset = 'utf-8' | |
Protected Attributes inherited from Zend_ProgressBar_Adapter | |
| $_skipOptions | |
Definition at line 40 of file Console.php.
| __construct | ( | $options = null | ) |
Defined by Zend_ProgressBar_Adapter
| null | array | Zend_Config | $options |
Definition at line 161 of file Console.php.
| __destruct | ( | ) |
Close local stdout, when open
Definition at line 175 of file Console.php.
|
protected |
Calculate the bar width when other elements changed
Definition at line 501 of file Console.php.
|
protected |
Outputs given data to STDOUT.
This split-off is required for unit-testing.
| string | $data |
Definition at line 530 of file Console.php.
| finish | ( | ) |
Defined by Zend_ProgressBar_Adapter_Interface
Definition at line 474 of file Console.php.
| getOutputStream | ( | ) |
| notify | ( | $current, | |
| $max, | |||
| $percent, | |||
| $timeTaken, | |||
| $timeRemaining, | |||
| $text | |||
| ) |
Defined by Zend_ProgressBar_Adapter_Interface
| float | $current | Current progress value |
| float | $max | Max progress value |
| float | $percent | Current percent value |
| integer | $timeTaken | Taken time in seconds |
| integer | $timeRemaining | Remaining time in seconds |
| string | $text | Status text |
Definition at line 393 of file Console.php.
| setBarIndicatorChar | ( | $char | ) |
Set the indicator character for the bar
| string | $char |
Definition at line 327 of file Console.php.
| setBarLeftChar | ( | $char | ) |
Set the left-hand character for the bar
| string | $char |
| Zend_ProgressBar_Adapter_Exception | When character is empty |
Definition at line 290 of file Console.php.
| setBarRightChar | ( | $char | ) |
Set the right-hand character for the bar
| string | $char |
| Zend_ProgressBar_Adapter_Exception | When character is empty |
Definition at line 309 of file Console.php.
| setCharset | ( | $charset | ) |
Set the charset of the text element
| string | $charset |
Definition at line 354 of file Console.php.
| setElements | ( | array | $elements | ) |
Set the elements to display with the progressbar
| array | $elements |
| Zend_ProgressBar_Adapter_Exception | When an invalid element is foudn in the array |
Definition at line 264 of file Console.php.
| setFinishAction | ( | $action | ) |
Set the finish action
| string | $action |
| Zend_ProgressBar_Adapter_Exception | When an invalid action is specified |
Definition at line 366 of file Console.php.
| setOutputStream | ( | $resource | ) |
Set a different output-stream
| string | $resource |
Definition at line 188 of file Console.php.
| setTextWidth | ( | $width | ) |
Set the width of the text element
| integer | $width |
Definition at line 340 of file Console.php.
| setWidth | ( | $width = null | ) |
Set the width of the progressbar
| integer | $width |
Definition at line 228 of file Console.php.
|
protected |
Definition at line 119 of file Console.php.
|
protected |
Definition at line 112 of file Console.php.
|
protected |
Definition at line 126 of file Console.php.
|
protected |
Definition at line 105 of file Console.php.
|
protected |
Definition at line 154 of file Console.php.
|
protected |
Definition at line 89 of file Console.php.
|
protected |
Definition at line 98 of file Console.php.
|
protected |
Definition at line 147 of file Console.php.
|
protected |
Definition at line 133 of file Console.php.
|
protected |
Definition at line 140 of file Console.php.
|
protected |
Definition at line 82 of file Console.php.
| const ELEMENT_BAR = 'ELEMENT_BAR' |
Visual value of the progress
Definition at line 50 of file Console.php.
| const ELEMENT_ETA = 'ELEMENT_ETA' |
ETA of the progress
Definition at line 55 of file Console.php.
| const ELEMENT_PERCENT = 'ELEMENT_PERCENT' |
Percentage value of the progress
Definition at line 45 of file Console.php.
| const ELEMENT_TEXT = 'ELEMENT_TEXT' |
Text part of the progress
Definition at line 60 of file Console.php.
| const FINISH_ACTION_CLEAR_LINE = 'FINISH_ACTION_CLEAR_LINE' |
Finish action: Clear Line
Definition at line 70 of file Console.php.
| const FINISH_ACTION_EOL = 'FINISH_ACTION_EOL' |
Finish action: End of Line
Definition at line 65 of file Console.php.
| const FINISH_ACTION_NONE = 'FINISH_ACTION_NONE' |
Finish action: None
Definition at line 75 of file Console.php.