LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_ProgressBar_Adapter_Console offers a text-based progressbar for console applications
ELEMENT_PERCENT = 'ELEMENT_PERCENT'
Percentage value of the progress
Details ELEMENT_BAR = 'ELEMENT_BAR'
Visual value of the progress
Details ELEMENT_ETA = 'ELEMENT_ETA'
ETA of the progress
Details ELEMENT_TEXT = 'ELEMENT_TEXT'
Text part of the progress
Details FINISH_ACTION_EOL = 'FINISH_ACTION_EOL'
Finish action: End of Line
Details FINISH_ACTION_CLEAR_LINE = 'FINISH_ACTION_CLEAR_LINE'
Finish action: Clear Line
Details FINISH_ACTION_NONE = 'FINISH_ACTION_NONE'
Finish action: None
Detailsstring $_barIndicatorChar = ''Indicator character(s) within the bar
Detailsstring $_barLeftChar = '#'Left character(s) within the bar
Detailsstring $_barRightChar = '-'Right character(s) within the bar
Detailsinteger $_barWidth = ''Width of the bar element
Detailsstring $_charset = 'utf-8'Charset of text element
Detailsarray $_elements = 'array'Elements to display
Detailsstring $_finishAction = 'self'Which action to do at finish call
Detailsboolean $_outputStarted = 'false'Wether the output started yet or not
Detailsresource $_outputStream = 'null'Output-stream, when STDOUT is not defined (e.g. in CGI) or set manually
Detailsstring $_textWidth = '20'Width of the text element
Detailsinteger $_width = 'null'Width of the progressbar
Details__construct(
null|array|Zend_Config $options
=
null
)
:
Defined by Zend_ProgressBar_Adapter
Details__destruct(
)
:
Close local stdout, when open
Details_calculateBarWidth(
)
:
voidCalculate the bar width when other elements changed
Details_outputData(
string $data
)
:
voidOutputs given data to STDOUT.
This split-off is required for unit-testing.
Detailsfinish(
)
:
voidDefined by Zend_ProgressBar_Adapter_Interface
DetailsgetOutputStream(
)
:
resourceGet the current output stream
Detailsnotify(
float $current, float $max, float $percent, integer $timeTaken, integer $timeRemaining, string $text
)
:
voidDefined by Zend_ProgressBar_Adapter_Interface
DetailssetBarIndicatorChar(
string $char
)
:
Zend_ProgressBar_Adapter_ConsoleSet the indicator character for the bar
DetailssetBarLeftChar(
string $char
)
:
Zend_ProgressBar_Adapter_ConsoleSet the left-hand character for the bar
DetailssetBarRightChar(
string $char
)
:
Zend_ProgressBar_Adapter_ConsoleSet the right-hand character for the bar
DetailssetCharset(
string $charset
)
:
Set the charset of the text element
DetailssetElements(
array $elements
)
:
Zend_ProgressBar_Adapter_ConsoleSet the elements to display with the progressbar
DetailssetFinishAction(
string $action
)
:
Zend_ProgressBar_Adapter_ConsoleSet the finish action
DetailssetOutputStream(
string $resource
)
:
Zend_ProgressBar_Adapter_ConsoleSet a different output-stream
DetailssetTextWidth(
integer $width
)
:
Zend_ProgressBar_Adapter_ConsoleSet the width of the text element
DetailssetWidth(
integer $width
=
null
)
:
Zend_ProgressBar_Adapter_ConsoleSet the width of the progressbar
Details