protected function _authCreate($username, $password, $company_file = null, $wait_before_next_update = null, $min_run_every_n_seconds = null)
	{
		$errnum = 0;
		$errmsg = '';

		if (!$this->_count($this->_query("SELECT qb_username FROM " . $this->_mapTableName(QUICKBOOKS_DRIVER_SQL_USERTABLE) . " WHERE qb_username = '" . $this->_escape($username) . "' ", $errnum, $errmsg, 0, 1)))
		{
			return $this->_query("
				INSERT INTO
					" . $this->_mapTableName(QUICKBOOKS_DRIVER_SQL_USERTABLE) . "
				(
					qb_username,
					qb_password,
					qb_company_file,
					qbwc_wait_before_next_update,
					qbwc_min_run_every_n_seconds,
					status,
					write_datetime,
					touch_datetime
				) VALUES (
					'" . $this->_escape($username) . "',
					'" . $this->_escape($this->_hash($password)) . "',
					'" . $this->_escape($company_file) . "',
					" . (int) $wait_before_next_update . ",
					" . (int) $min_run_every_n_seconds . ",
					'" . QUICKBOOKS_USER_ENABLED . "',
					'" . date('Y-m-d H:i:s') . "',
					'" . date('Y-m-d H:i:s') . "'
				) ", $errnum, $errmsg);
		}

		return false;
	}
protected function _authCreate($username, $password, $company_file = null, $wait_before_next_update = null, $min_run_every_n_seconds = null)
	{
		$errnum = 0;
		$errmsg = '';

		if (!$this->_count($this->_query("SELECT qb_username FROM " . $this->_mapTableName(QUICKBOOKS_DRIVER_SQL_USERTABLE) . " WHERE qb_username = '" . $this->_escape($username) . "' ", $errnum, $errmsg, 0, 1)))
		{
			return $this->_query("
				INSERT INTO
					" . $this->_mapTableName(QUICKBOOKS_DRIVER_SQL_USERTABLE) . "
				(
					qb_username,
					qb_password,
					qb_company_file,
					qbwc_wait_before_next_update,
					qbwc_min_run_every_n_seconds,
					status,
					write_datetime,
					touch_datetime
				) VALUES (
					'" . $this->_escape($username) . "',
					'" . $this->_escape($this->_hash($password)) . "',
					'" . $this->_escape($company_file) . "',
					" . (int) $wait_before_next_update . ",
					" . (int) $min_run_every_n_seconds . ",
					'" . QUICKBOOKS_USER_ENABLED . "',
					'" . date('Y-m-d H:i:s') . "',
					'" . date('Y-m-d H:i:s') . "'
				) ", $errnum, $errmsg);
		}

		return false;
	}
protected function _authCreate ( $ username , $ password , $ company_file = null , $ wait_before_next_update = null , $ min_run_every_n_seconds = null ) { $ errnum = 0 ; $ errmsg = '' ; if ( ! $ this -> _count ( $ this -> _query ( "SELECT qb_username FROM " . $ this -> _mapTableName ( QUICKBOOKS_DRIVER_SQL_USERTABLE ) . " WHERE qb_username = '" . $ this -> _escape ( $ username ) . "' " , $ errnum , $ errmsg , 0 , 1 ) ) ) { return $ this -> _query ( "
				INSERT INTO
					" . $ this -> _mapTableName ( QUICKBOOKS_DRIVER_SQL_USERTABLE ) . "
				(
					qb_username,
					qb_password,
					qb_company_file,
					qbwc_wait_before_next_update,
					qbwc_min_run_every_n_seconds,
					status,
					write_datetime,
					touch_datetime
				) VALUES (
					'" . $ this -> _escape ( $ username ) . "',
					'" . $ this -> _escape ( $ this -> _hash ( $ password ) ) . "',
					'" . $ this -> _escape ( $ company_file ) . "',
					" . ( int ) $ wait_before_next_update . ",
					" . ( int ) $ min_run_every_n_seconds . ",
					'" . QUICKBOOKS_USER_ENABLED . "',
					'" . date ( 'Y-m-d H:i:s' ) . "',
					'" . date ( 'Y-m-d H:i:s' ) . "'
				) " , $ errnum , $ errmsg ) ; } return false ; }
Create a new user for the SOAP server

@param string $username
@param string $password
@return boolean
Create a new user for the SOAP server