Class Horde_Rpc_Jsonrpc
	
	The Horde_RPC_json-rpc class provides a JSON-RPC 1.1 implementation of the
Horde RPC system.
- Only POST requests are supported.
- Named and positional parameters are accepted but the Horde registry only works with positional parameters.
- Service Descriptions are not supported yet.
 
	
		- 
			Horde_Rpc
			
			
			
		
- 
			 Horde_Rpc_Jsonrpc Horde_Rpc_Jsonrpc
	Methods summary
	
		| 
			 public 
			string
			
			 | 
		#
		getResponseContentType( )
			Returns the Content-Type of the response. 
			Returns the Content-Type of the response. Returns
					stringThe MIME Content-Type of the RPC response.
 Overrides | 
	
		| 
			 public 
			string
			
			 | 
		#
		getResponse( string $request )
			Sends an RPC request to the server and returns the result. 
			Sends an RPC request to the server and returns the result. Parameters
					$requestraw request string.
Returns
					stringThe JSON encoded response from the server.
 Overrides | 
	
		| 
			 public 
			PEAR_Error
			
			 | 
		#
		_raiseError( string|PEAR_Error $error, stdClass $request )
			Returns a specially crafted PEAR_Error object containing a JSON-RPC
response in the error message. 
			Returns a specially crafted PEAR_Error object containing a JSON-RPC
response in the error message. Parameters
					$errorThe error message or object.
$requestThe original request object.
Returns
					PEAR_ErrorAn error object suitable for a JSON-RPC 1.1
                    conform error result. | 
	
		| 
			 public static
			mixed
			
			 | 
		#
		request( string|Horde_Url $url, string $method, Horde_Http_Client $client, array $params = null )
			Builds an JSON-RPC request and sends it to the server. 
			Builds an JSON-RPC request and sends it to the server. This statically called method is actually the JSON-RPC client. Parameters
					$url<p>The path to the JSON-RPC server on the
                              called host.</p>
$methodThe method to call.
$client
$params<p>A hash containing any necessary parameters
                              for the method call.</p>
Returns
					mixedThe returned result from the method.
 ThrowsOverrides | 
	
		| 
			 public 
			mixed
			
			 | 
		#
		_objectsToArrays( mixed $data )
			Converts stdClass object to associative arrays. 
			Converts stdClass object to associative arrays. Parameters
					$dataAny stdClass object, array, or scalar.
Returns
					mixedstdClass objects are returned as asscociative arrays,
               scalars as-is, and arrays with their elements converted. |