Exemplo n.º 1
0
 public function __construct(array $params = array(), Ess_M2ePro_Model_Listing_Other $otherListing)
 {
     $defaultParams = array('status_changer' => Ess_M2ePro_Model_Listing_Product::STATUS_CHANGER_UNKNOWN);
     $params = array_merge($defaultParams, $params);
     $this->otherListing = $otherListing;
     parent::__construct($params, $this->otherListing->getMarketplace(), $this->otherListing->getAccount(), NULL);
 }
Exemplo n.º 2
0
 public function __construct(array $params = array(), Ess_M2ePro_Model_Listing_Other $otherListing)
 {
     if (!is_null($otherListing->getActionConfigurator())) {
         $actionConfigurator = $otherListing->getActionConfigurator();
     } else {
         $actionConfigurator = Mage::getModel('M2ePro/Ebay_Listing_Other_Action_Configurator');
     }
     $this->otherListing = $otherListing->loadInstance($otherListing->getId());
     $this->otherListing->setActionConfigurator($actionConfigurator);
     parent::__construct($params, $this->otherListing->getMarketplace(), $this->otherListing->getAccount(), NULL);
 }
Exemplo n.º 3
0
 public function __construct(array $params = array(), Ess_M2ePro_Model_Order_Item $orderItem)
 {
     parent::__construct($params, null, $orderItem->getOrder()->getAccount(), null);
     $this->orderItem = $orderItem;
 }
Exemplo n.º 4
0
 public function __construct(array $params = array(), Ess_M2ePro_Model_Order $order, $action = NULL)
 {
     $this->order = $order;
     $this->action = $action;
     parent::__construct($params, NULL, $order->getAccount());
 }
Exemplo n.º 5
0
 public function __construct(array $params = array(), Ess_M2ePro_Model_Listing_Other $otherListing)
 {
     $this->otherListing = $otherListing;
     parent::__construct($params, $this->otherListing->getMarketplace(), $this->otherListing->getAccount(), NULL);
 }
Exemplo n.º 6
0
 public function __construct(array $params = array(), Ess_M2ePro_Model_Marketplace $marketplace, Ess_M2ePro_Model_Account $account)
 {
     $defaultParams = array('status_changer' => Ess_M2ePro_Model_Listing_Product::STATUS_CHANGER_UNKNOWN);
     $params = array_merge($defaultParams, $params);
     parent::__construct($params, $marketplace, $account, NULL);
 }