/** * Get time label * * @return string */ protected function getTimeLabel() { return \XLite\Core\Translation::formatTimePeriod($this->getQuickDataGenerator()->getTimeRemain()); }
/** * Get time label * * @return string */ protected function getTimeLabel() { return \XLite\Core\Translation::formatTimePeriod($this->getImporter()->getStep()->getTimeRemain()); }
/** * Finish step * * @return void */ protected function finishStep() { $generator = $this->getItems(); $this->serviceTime += microtime(true) - $this->timeMark; $generator->getOptions()->time += $this->serviceTime; $this->record['options'] = $generator->getOptions()->getArrayCopy(); $timeLabel = \XLite\Core\Translation::formatTimePeriod($generator->getTimeRemain()); $this->record['touchData'] = array(); if ($timeLabel) { $this->record['touchData']['timeLabel'] = static::t('About X remaining', array('time' => $timeLabel)); } parent::finishStep(); }