Example #1
0
 protected function getRequestInfo()
 {
     if (isset($this->cache['request_info'])) {
         return $this->cache['request_info'];
     }
     if (!isset($this->params['__request_info__']) || !is_array($this->params['__request_info__']) || count($this->params['__request_info__']) <= 0) {
         $this->cache['request_info'] = parent::getRequestInfo();
     } else {
         $this->cache['request_info'] = $this->params['__request_info__'];
         unset($this->params['__request_info__']);
     }
     return $this->cache['request_info'];
 }
Example #2
0
 public function process()
 {
     $this->setStatus(Ess_M2ePro_Model_Connector_Server_Play_Product_Requester::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_Model_Connector_Server_Play_Product_Requester::STATUS_ERROR);
     }
     $this->checkUnlockListings();
 }
Example #3
0
 public function process()
 {
     parent::process();
     $this->deleteProcessedChanges();
 }