Overview  Package  Tree HessianPHP

HessianPHP

Class Hessian

HessianPHP.Hessian

class Hessian

Main client configuration class.

Use it's static methods to configure several options for the connection to a url and mapping of remote types to php types via deserializers. See HessianPHP tests for examples of usage.

Author:
Vegeta
Version:
1.0

Field Summary
Method Summary
public static voidgetHessianProxy

Returns an object representing information on a remote Hessian url.

public static voidremoteMethod

Registers a remote method name for a service url.

public static voidmapRemoteType

Sets a mapping between a remote object type to a php object type.

public voidsetDateProvider
public voidgetDateProvider
public voiderrorReporting
public voiderror
public voidgetErrorStack
public voidisError
public voidaddFilter
public voidremoveFilter
Method Detail

getHessianProxy()

public static void getHessianProxy(string url,
                                   var $options = false,
                                   boolean create)

Returns an object representing information on a remote Hessian url.

Optionally, it can create a default object if needed

Parameters:
url - Remote url
$options
create - Shall it create the object?

remoteMethod()

public static void remoteMethod(string url,
                                string name)

Registers a remote method name for a service url.

Parameters:
url - Url of the service
name - Name of the remote service method

mapRemoteType()

public static void mapRemoteType(string remoteType,
                                 string phptype)

Sets a mapping between a remote object type to a php object type.

It maps the class name received in a service to a local php class to be created and deserialized by the default object deserializer. Usefull to match types from different platforms to custrom php classes in a simple way.

Parameters:
remoteType - Name of the remote Class
phptype - Name of the PHP class to create

setDateProvider()

public void setDateProvider(var $provider)
Parameters:
$provider

getDateProvider()

public void getDateProvider()

errorReporting()

public void errorReporting(var $level = null)
Parameters:
$level

error()

public void error()

getErrorStack()

public void getErrorStack()

isError()

public void isError(var $obj)
Parameters:
$obj

addFilter()

public void addFilter(var $obj,
                      var $name = '')
Parameters:
$obj
$name

removeFilter()

public void removeFilter(var $name)
Parameters:
$name

Overview  Package  Tree HessianPHP