/** * @param Ess_M2ePro_Model_Connector_Translation_Requester|Ess_M2ePro_Model_Connector_Translation_Abstract $conn * @return mixed */ public function process($conn) { return $conn->process(); }
public function process() { $this->setStatus(Ess_M2ePro_Helper_Data::STATUS_SUCCESS); $this->setIsProcessingItems(false); if (count($this->listingsProducts) <= 0) { return; } $this->setIsProcessingItems(true); $this->updateOrLockListingProducts(); 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(); }