public function __construct() { $this->_inventoryQuantityFactory = Mage::helper('ebayenterprise_inventory/quantity_factory'); $this->_inventoryHelper = Mage::helper('ebayenterprise_inventory'); $this->_inventoryConfig = $this->_inventoryHelper->getConfigModel(); $this->_coreHelper = Mage::helper('eb2ccore'); $this->_logger = Mage::helper('ebayenterprise_magelog'); $this->_logContext = Mage::helper('ebayenterprise_magelog/context'); }
/** * configure and get the API * * @param string * @return IBidirectionalApi */ public function prepareApi() { $config = $this->helper->getConfigModel(); $api = $this->coreHelper->getSdkApi($config->apiService, $config->apiAllocationCreateOperation); return $api; }
/** * Get and configure the api */ protected function prepareApi() { $config = $this->helper->getConfigModel(); $api = $this->coreHelper->getSdkApi($config->apiService, $config->apiDetailsOperation); return $api; }
/** * @param array $args May contain: * - config => EbayEnterprise_Eb2cCore_Model_Config_Registry * - details_service => EbayEnterprise_Inventory_Model_Details_Service * - edd => EbayEnterprise_Inventory_Model_Edd */ public function __construct(array $args = []) { list($this->helper, $this->detailService, $this->edd) = $this->checkTypes($this->nullCoalesce($args, 'helper', Mage::helper('ebayenterprise_inventory')), $this->nullCoalesce($args, 'detail_service', Mage::getModel('ebayenterprise_inventory/details_service')), $this->nullCoalesce($args, 'edd', Mage::getModel('ebayenterprise_inventory/edd'))); list($this->config) = $this->checkConfigTypes($this->nullCoalesce($args, 'config', $this->helper->getConfigModel())); }