* @copyright 2007-2012 PrestaShop SA * @version Release: $Revision: 1.4 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ /* Security */ if (!defined('_PS_VERSION_')) exit; class ShipwireInventoryUpdate extends ShipwireApi { protected $_apiType = 'inventoryUpdate'; public function __construct($apiUser, $apiPasswd) { $this->_xml['header'][] = ''. ''.$apiUser.''. ''.$apiPasswd.''. ''.$this->_configVars['SHIPWIRE_API_MODE'].''. '7403'. ' '; $this->_xml['body'][] = ''; $this->_xml['footer'][] = ''; } public function getInventory($field = NULL) { $result = $this->sendData(); if (!empty($field) && isset($result[$field])) $result = $result[$field]; return $result; } }