public function execute($response)
 {
     parent::execute($response);
     $this->getResultCollection()->merge($this->getExistingCategories());
     $this->getResultCollection()->synchronizeFromArray($this->getResponseArray());
     return $this->getResultCollection();
 }
Example #2
0
 public function execute($response)
 {
     parent::execute($response);
     $this->transientNewItemsCreate();
     foreach ($this->getResultCollection() as $pic) {
         $pic->save();
     }
 }
Example #3
0
 public function execute($response)
 {
     parent::execute($response);
     $this->transientExistingItemsDelete();
     # find items not present in XML, put status DROPPED
     $this->transientExistingItemsUpdate();
     # find items present in XML and DB, syncronize DB fields
     $this->transientNewItemsCreate();
     # find items not present in DB, create new objects
     foreach ($this->getResultCollection() as $item) {
         $item->save();
     }
 }
Example #4
0
 public function execute($response)
 {
     parent::execute($response);
     $this->setResponseArray($this->convertResponse2Array());
     unset($this->response);
 }
 public function execute($response)
 {
     parent::execute($response);
     $this->createXMLQueueFiles();
 }