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;
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);
193 $this->
update(max($this->_min, min($this->_max, $this->_current + $diff)),
$text);
203 if ($this->_persistenceNamespace !==
null) {
204 unset($this->_persistenceNamespace->isSet);
207 $this->_adapter->finish();
if($this->helper('Magento\Tax\Helper\Data') ->displayFullSummary()) foreach( $block->getTotal() ->getFullInfo() as $info)(isset($info['hidden']) && $info['hidden']) $percent
update($value=null, $text=null)
next($diff=1, $text=null)
__construct(Zend_ProgressBar_Adapter $adapter, $min=0, $max=100, $persistenceNamespace=null)