Exemple #1
0
 /**
  * Check - export process is not-finished or not
  *
  * @return boolean
  */
 public function isImageResizeNotFinished()
 {
     $eventName = \XLite\Logic\ImageResize\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->getImageResizeCancelFlagVarName());
 }
Exemple #2
0
 /**
  * Get export event name
  *
  * @return string
  */
 protected function getEventName()
 {
     return \XLite\Logic\ImageResize\Generator::getEventName();
 }