Definition at line 28 of file ProgressBar.php.
◆ __construct()
Create a new progressbar backend.
- Parameters
-
- Exceptions
-
Definition at line 88 of file ProgressBar.php.
92 #require_once 'Zend/ProgressBar/Exception.php'; 96 $this->_min = (float) $min;
97 $this->_max = (float) $max;
98 $this->_current = (float) $min;
101 if ($persistenceNamespace !==
null) {
102 #require_once 'Zend/Session/Namespace.php'; 111 $this->_startTime =
time();
114 if ($this->_persistenceNamespace !==
null) {
115 if (isset($this->_persistenceNamespace->isSet)) {
116 $this->_startTime = $this->_persistenceNamespace->startTime;
117 $this->_current = $this->_persistenceNamespace->current;
118 $this->_statusText = $this->_persistenceNamespace->statusText;
120 $this->_persistenceNamespace->isSet =
true;
update($value=null, $text=null)
◆ finish()
Call the adapters finish() behaviour
- Returns
- void
Definition at line 201 of file ProgressBar.php.
203 if ($this->_persistenceNamespace !==
null) {
204 unset($this->_persistenceNamespace->isSet);
207 $this->_adapter->finish();
◆ getAdapter()
◆ next()
next |
( |
|
$diff = 1 , |
|
|
|
$text = null |
|
) |
| |
Update the progressbar to the next value
- Parameters
-
- Returns
- void
Definition at line 191 of file ProgressBar.php.
193 $this->
update(max($this->_min, min($this->_max, $this->_current + $diff)),
$text);
update($value=null, $text=null)
◆ update()
update |
( |
|
$value = null , |
|
|
|
$text = null |
|
) |
| |
Update the progressbar
- Parameters
-
- Returns
- void
Definition at line 147 of file ProgressBar.php.
151 $this->_current = min($this->_max, max($this->_min,
$value));
155 if (
$text !==
null) {
156 $this->_statusText =
$text;
160 if ($this->_persistenceNamespace !==
null) {
166 if ($this->_min === $this->_max) {
176 $timeRemaining =
null;
178 $timeRemaining = round(((1 /
$percent) * $timeTaken) - $timeTaken);
182 $this->_adapter->notify($this->_current, $this->_max,
$percent, $timeTaken, $timeRemaining, $this->_statusText);
if($this->helper('Magento\Tax\Helper\Data') ->displayFullSummary()) foreach( $block->getTotal() ->getFullInfo() as $info)(isset($info['hidden']) && $info['hidden']) $percent
◆ $_adapter
◆ $_current
◆ $_max
◆ $_min
◆ $_persistenceNamespace
$_persistenceNamespace = null |
|
protected |
◆ $_startTime
◆ $_statusText
The documentation for this class was generated from the following file: