コード例 #1
0
ファイル: Abstract.php プロジェクト: xiaoguizhidao/devfashion
 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);
 }
コード例 #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);
 }
コード例 #3
0
ファイル: Status.php プロジェクト: xiaoguizhidao/ecommerce
 public function __construct(array $params = array(), Ess_M2ePro_Model_Order_Item $orderItem)
 {
     parent::__construct($params, null, $orderItem->getOrder()->getAccount(), null);
     $this->orderItem = $orderItem;
 }
コード例 #4
0
ファイル: Abstract.php プロジェクト: xiaoguizhidao/devfashion
 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());
 }
コード例 #5
0
ファイル: Abstract.php プロジェクト: ppkowalski/M2E
 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);
 }
コード例 #6
0
ファイル: Abstract.php プロジェクト: xiaoguizhidao/devfashion
 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);
 }