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); }
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); }
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); if (isset($params['logs_action_id'])) { $this->logsActionId = (int) $params['logs_action_id']; unset($params['logs_action_id']); } else { $this->logsActionId = Mage::getModel('M2ePro/Listing_Other_Log')->getNextActionId(); } $this->otherListing = $otherListing; parent::__construct($params, $this->otherListing->getMarketplace(), $this->otherListing->getAccount(), NULL); }
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); }