Beispiel #1
0
 /**
  * Check - export process is not-finished or not
  *
  * @return boolean
  */
 public function isSalesNotFinished()
 {
     $eventName = \XLite\Module\CDev\Bestsellers\Logic\Sales\Generator::getEventName();
     $state = \XLite\Core\Database::getRepo('XLite\\Model\\TmpVar')->getEventState($eventName);
     return $state && in_array($state['state'], array(\XLite\Core\EventTask::STATE_STANDBY, \XLite\Core\EventTask::STATE_IN_PROGRESS)) && !\XLite\Core\Database::getRepo('XLite\\Model\\TmpVar')->getVar($this->getSalesCancelFlagVarName());
 }
Beispiel #2
0
 /**
  * Get export event name
  *
  * @return string
  */
 protected function getEventName()
 {
     return \XLite\Module\CDev\Bestsellers\Logic\Sales\Generator::getEventName();
 }