示例#1
0
 /**
  * Finish step
  *
  * @return void
  */
 protected function finishStep()
 {
     $step = $this->getItems();
     $this->serviceTime += microtime(true) - $this->timeMark;
     $step->getOptions()->time += $this->serviceTime;
     $this->record['options'] = $step->getOptions()->getArrayCopy();
     $this->record['touchData'] = array();
     if (0 < $step->getOptions()->errorsCount + $step->getOptions()->warningsCount) {
         $label = $step->getErrorLanguageLabel();
     } else {
         $label = $step->getNormalLanguageLabel();
     }
     $this->record['touchData']['rowsProcessedLabel'] = $label;
     parent::finishStep();
 }
示例#2
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();
 }