コード例 #1
0
 public function execute($response)
 {
     parent::execute($response);
     $this->getResultCollection()->merge($this->getExistingCategories());
     $this->getResultCollection()->synchronizeFromArray($this->getResponseArray());
     return $this->getResultCollection();
 }
コード例 #2
0
ファイル: VideoPicsMapper.php プロジェクト: vcgato29/poff
 public function execute($response)
 {
     parent::execute($response);
     $this->transientNewItemsCreate();
     foreach ($this->getResultCollection() as $pic) {
         $pic->save();
     }
 }
コード例 #3
0
ファイル: VideosMapper.class.php プロジェクト: vcgato29/poff
 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();
     }
 }
コード例 #4
0
ファイル: XMLMapper.class.php プロジェクト: vcgato29/poff
 public function execute($response)
 {
     parent::execute($response);
     $this->setResponseArray($this->convertResponse2Array());
     unset($this->response);
 }
コード例 #5
0
 public function execute($response)
 {
     parent::execute($response);
     $this->createXMLQueueFiles();
 }