Beispiel #1
0
 /**
  * Check - current event driver is blocking or not
  *
  * @return boolean
  */
 protected function isBlocking()
 {
     return \XLite\Core\EventTask::getInstance()->getDriver()->isBlocking();
 }
Beispiel #2
0
 /**
  * Run
  *
  * @param array $options Options
  *
  * @return void
  */
 public static function run(array $options)
 {
     \XLite\Core\Database::getRepo('XLite\\Model\\TmpVar')->setVar(static::getImportCancelFlagVarName(), false);
     \XLite\Core\Database::getRepo('XLite\\Model\\TmpVar')->setVar(static::getImportUserBreakFlagVarName(), false);
     \XLite\Core\Database::getRepo('XLite\\Model\\TmpVar')->initializeEventState(static::getEventName(), array('options' => $options));
     \XLite\Core\EventTask::import();
     call_user_func(array('\\XLite\\Core\\EventTask', static::getEventName()));
 }
Beispiel #3
0
 /**
  * Migrate from Amazon S3
  *
  * @return void
  */
 protected function doActionMigrateFromS3()
 {
     \XLite\Core\Database::getRepo('XLite\\Model\\TmpVar')->initializeEventState('migrateFromS3');
     \XLite\Core\EventTask::migrateFromS3();
 }