コード例 #1
0
ファイル: Cronjobs.php プロジェクト: Goucher/shopware
 /**
  * Imports an Update the latest trusted Shops ProtectionsItems
  *
  * @param \Shopware_Components_Cron_CronJob $job
  * @return boolean
  */
 public function onRunTSGetLatestProtectionItems(\Shopware_Components_Cron_CronJob $job)
 {
     $this->prepareCronJob($job);
     /* @var Shop $shop */
     foreach ($this->shops as $shop) {
         $shopId = $shop['id'];
         //get the latest trusted shops items
         $this->tsSoapApi->updateTrustedShopsProtectionItems($shopId);
     }
     echo 'Updated TrustedShops Buyer Protection items <br>';
     return true;
 }