protected function getClient($path = null)
	{
		if ($path === null) {
			return $this->client;
		}

		if ($this->path === $path) {
			return $this->client;
		}

		$this->path = $path;

		$this->client = new XmlRpcClient($this->host . '/' . $path, $this->httpClient);

		// The introspection done by the Zend XmlRpc client is probably specific
		// to Zend XmlRpc servers. To prevent polution of the Odoo logs with errors
		// resulting from this introspection calls we disable it.
		$this->client->setSkipSystemLookup(true);

		return $this->client;
	}
protected function getClient($path = null)
	{
		if ($path === null) {
			return $this->client;
		}

		if ($this->path === $path) {
			return $this->client;
		}

		$this->path = $path;

		$this->client = new XmlRpcClient($this->host . '/' . $path, $this->httpClient);

		// The introspection done by the Zend XmlRpc client is probably specific
		// to Zend XmlRpc servers. To prevent polution of the Odoo logs with errors
		// resulting from this introspection calls we disable it.
		$this->client->setSkipSystemLookup(true);

		return $this->client;
	}
protected function getClient ( $ path = null ) { if ( $ path === null ) { return $ this -> client ; } if ( $ this -> path === $ path ) { return $ this -> client ; } $ this -> path = $ path ; $ this -> client = new XmlRpcClient ( $ this -> host . '/' . $ path , $ this -> httpClient ) ; // The introspection done by the Zend XmlRpc client is probably specific // to Zend XmlRpc servers. To prevent polution of the Odoo logs with errors // resulting from this introspection calls we disable it. $ this -> client -> setSkipSystemLookup ( true ) ; return $ this -> client ; }
Get XmlRpc Client

This method returns an XmlRpc Client for the requested endpoint.
If no endpoint is specified or if a client for the requested endpoint is
already initialized, the last used client will be returned.

@param null|string $path The api endpoint

@return XmlRpcClient
Get XmlRpc Client