Ejemplo n.º 1
0
 /**
  * Get time label
  *
  * @return string
  */
 protected function getTimeLabel()
 {
     return \XLite\Core\Translation::formatTimePeriod($this->getQuickDataGenerator()->getTimeRemain());
 }
Ejemplo n.º 2
0
 /**
  * Get time label
  *
  * @return string
  */
 protected function getTimeLabel()
 {
     return \XLite\Core\Translation::formatTimePeriod($this->getImporter()->getStep()->getTimeRemain());
 }
Ejemplo n.º 3
0
 /**
  * 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();
 }