Example #1
0
 public function markAsInProgress(array $itemIds, \Ess\M2ePro\Model\Request\Pending\Single $requestPendingSingle)
 {
     $this->getConnection()->update($this->getMainTable(), array('request_pending_single_id' => $requestPendingSingle->getId(), 'is_completed' => 0), array('id IN (?)' => $itemIds));
 }
 private function completeRequest(Single $requestPendingSingle, array $data, array $messages)
 {
     $requestPendingSingle->setSettings('result_data', $data);
     $requestPendingSingle->setSettings('result_messages', $messages);
     $requestPendingSingle->setData('is_completed', 1);
     $requestPendingSingle->save();
 }