Пример #1
0
 public function __construct(array $params = array())
 {
     parent::__construct($params);
     foreach ($this->params['products'] as $listingProductId => $listingProductData) {
         try {
             $this->listingsProducts[] = Mage::helper('M2ePro/Component_Ebay')->getObject('Listing_Product', (int) $listingProductId);
         } catch (Exception $exception) {
         }
     }
 }
 public function __construct(Ess_M2ePro_Model_Processing_Request $processingRequest)
 {
     parent::__construct($processingRequest);
     foreach ($this->params['products'] as $listingProductId => $listingProductData) {
         try {
             $this->listingsProducts[] = Mage::helper('M2ePro/Component_Ebay')->getObject('Listing_Product', (int) $listingProductId);
         } catch (Exception $exception) {
         }
     }
 }