Пример #1
0
 /**
  * Get import event name
  *
  * @return string
  */
 protected function getEventName()
 {
     return \XLite\Logic\Import\Importer::getEventName();
 }
Пример #2
0
 /**
  * Check - step is finalized or not
  * 
  * @return boolean
  */
 public function isStepFinalized()
 {
     $state = \XLite\Core\Database::getRepo('XLite\\Model\\TmpVar')->getEventState(\XLite\Logic\Import\Importer::getEventName());
     return $state && !empty($state['options']) && (isset($state['options']['step']) && $state['options']['step'] > $this->index || $state['state'] == \XLite\Core\EventTask::STATE_FINISHED);
 }