/** * @param string $location Location of the SOAP host (uri) * @return sugarCrmConnector */ public static function getInstance($location = null) { /*if ( defined('SOAP_HOST') ) { $location = SOAP_HOST; } if ( is_null($location) ) { throw new Exception('No location given'); }*/ $location = 'http://crm1.bellcom.dk/soap.php'; self::$options = array('location' => $location, 'uri' => 'http://www.sugarcrm.com/sugarcrm', 'trace' => 1); if (self::$instance === null) { self::$instance = new self(); } return self::$instance; }