Zend Framework
1.12
|
Public Member Functions | |
__construct ($options=null) | |
Defined by Zend_ProgressBar_Adapter. | |
__destruct () | |
Close local stdout, when open. | |
setOutputStream ($resource) | |
Set a different output-stream. | |
getOutputStream () | |
Get the current output stream. | |
setWidth ($width=null) | |
Set the width of the progressbar. | |
setElements (array $elements) | |
Set the elements to display with the progressbar. | |
setBarLeftChar ($char) | |
Set the left-hand character for the bar. | |
setBarRightChar ($char) | |
Set the right-hand character for the bar. | |
setBarIndicatorChar ($char) | |
Set the indicator character for the bar. | |
setTextWidth ($width) | |
Set the width of the text element. | |
setCharset ($charset) | |
Set the charset of the text element. | |
setFinishAction ($action) | |
Set the finish action. | |
notify ($current, $max, $percent, $timeTaken, $timeRemaining, $text) | |
Defined by Zend_ProgressBar_Adapter_Interface. | |
finish () | |
Defined by Zend_ProgressBar_Adapter_Interface. | |
![]() | |
__construct ($options=null) | |
Create a new adapter. | |
setConfig (Zend_Config $config) | |
Set options via a Zend_Config instance. | |
setOptions (array $options) | |
Set options via an array. | |
notify ($current, $max, $percent, $timeTaken, $timeRemaining, $text) | |
Notify the adapter about an update. | |
finish () | |
Called when the progress is explicitly finished. | |
Public Attributes | |
const | ELEMENT_PERCENT = 'ELEMENT_PERCENT' |
Percentage value of the progress. | |
const | ELEMENT_BAR = 'ELEMENT_BAR' |
Visual value of the progress. | |
const | ELEMENT_ETA = 'ELEMENT_ETA' |
ETA of the progress. | |
const | ELEMENT_TEXT = 'ELEMENT_TEXT' |
Text part of the progress. | |
const | FINISH_ACTION_EOL = 'FINISH_ACTION_EOL' |
Finish action: End of Line. | |
const | FINISH_ACTION_CLEAR_LINE = 'FINISH_ACTION_CLEAR_LINE' |
Finish action: Clear Line. | |
const | FINISH_ACTION_NONE = 'FINISH_ACTION_NONE' |
Finish action: None. | |
Protected Member Functions | |
_calculateBarWidth () | |
Calculate the bar width when other elements changed. | |
_outputData ($data) | |
Outputs given data to STDOUT. | |
Protected Attributes | |
$_width = null | |
$_elements | |
$_finishAction = self::FINISH_ACTION_EOL | |
$_barWidth | |
$_barLeftChar = '#' | |
$_barIndicatorChar = '' | |
$_barRightChar = '-' | |
$_outputStream = null | |
$_textWidth = 20 | |
$_outputStarted = false | |
$_charset = 'utf-8' | |
![]() | |
$_skipOptions | |
__construct | ( | $options = null | ) |
Defined by Zend_ProgressBar_Adapter.
null | array | Zend_Config | $options |
__destruct | ( | ) |
Close local stdout, when open.
|
protected |
Calculate the bar width when other elements changed.
|
protected |
Outputs given data to STDOUT.
This split-off is required for unit-testing.
string | $data |
finish | ( | ) |
Defined by Zend_ProgressBar_Adapter_Interface.
getOutputStream | ( | ) |
Get the current output stream.
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 |
setBarIndicatorChar | ( | $char | ) |
Set the indicator character for the bar.
string | $char |
setBarLeftChar | ( | $char | ) |
Set the left-hand character for the bar.
string | $char |
Zend_ProgressBar_Adapter_Exception | When character is empty |
setBarRightChar | ( | $char | ) |
Set the right-hand character for the bar.
string | $char |
Zend_ProgressBar_Adapter_Exception | When character is empty |
setCharset | ( | $charset | ) |
Set the charset of the text element.
string | $charset |
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 |
setFinishAction | ( | $action | ) |
Set the finish action.
string | $action |
Zend_ProgressBar_Adapter_Exception | When an invalid action is specified |
setOutputStream | ( | $resource | ) |
setTextWidth | ( | $width | ) |
setWidth | ( | $width = null | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const ELEMENT_BAR = 'ELEMENT_BAR' |
Visual value of the progress.
const ELEMENT_ETA = 'ELEMENT_ETA' |
ETA of the progress.
const ELEMENT_PERCENT = 'ELEMENT_PERCENT' |
Percentage value of the progress.
const ELEMENT_TEXT = 'ELEMENT_TEXT' |
Text part of the progress.
const FINISH_ACTION_CLEAR_LINE = 'FINISH_ACTION_CLEAR_LINE' |
Finish action: Clear Line.
const FINISH_ACTION_EOL = 'FINISH_ACTION_EOL' |
Finish action: End of Line.
const FINISH_ACTION_NONE = 'FINISH_ACTION_NONE' |
Finish action: None.