public static function getCarriers($ebay_site_id)
 {
     if (EbayShippingService::getTotal($ebay_site_id)) {
         return EbayShippingService::getAll($ebay_site_id);
     }
     $ebay = new EbayRequest();
     $carriers = $ebay->getCarriers();
     foreach ($carriers as $carrier) {
         EbayShippingService::insert(array_map('pSQL', $carrier));
     }
     return $carriers;
 }
Пример #2
0
 private function _getCarriers()
 {
     if (EbayShippingService::getTotal()) {
         return EbayShippingService::getAll();
     }
     $ebay = new EbayRequest();
     $carriers = $ebay->getCarriers();
     foreach ($carriers as $carrier) {
         EbayShippingService::insert(array_map('pSQL', $carrier));
     }
     return $carriers;
 }