public function process() { $this->setStatus(Ess_M2ePro_Helper_Data::STATUS_SUCCESS); $this->setIsProcessingItems(false); if (count($this->listingsProducts) <= 0) { return; } $this->setIsProcessingItems(true); $this->updateOrLockListings(); parent::process(); // When all items are failed in response isset($this->response['data']['messages']) && ($tempMessages = $this->response['data']['messages']); if (isset($tempMessages) && is_array($tempMessages) && count($tempMessages) > 0) { $this->setStatus(Ess_M2ePro_Helper_Data::STATUS_ERROR); } $this->checkUnlockListings(); }
public function process() { try { $this->getLogger()->setStatus(Ess_M2ePro_Helper_Data::STATUS_SUCCESS); $this->setIsProcessingItems(false); $this->filterLockedListingsProducts(); $this->lockListingsProducts(); $this->validateAndFilterListingsProducts(); // all products did not pass validation // no need to sent request to the server if (empty($this->listingsProducts)) { return; } $this->setIsProcessingItems(true); parent::process(); // When all items are failed in response if (!isset($this->response['data']['processing_id'])) { $this->getLogger()->setStatus(Ess_M2ePro_Helper_Data::STATUS_ERROR); } } catch (Exception $exception) { $this->unlockListingsProducts(); throw $exception; } $this->unlockListingsProducts(); }
/** * @param Ess_M2ePro_Model_Connector_Buy_Requester|Ess_M2ePro_Model_Connector_Buy_Abstract $connector * @return mixed */ public function process($connector) { return $connector->process(); }
public function process() { parent::process(); $this->deleteProcessedChanges(); }