Overview Package Tree | HessianPHP |
FRAMES NO FRAMES | |
SUMMARY: FIELD METHOD | DETAIL: FIELD METHOD |
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.
Field Summary |
---|
Method Summary |
---|
public static void | getHessianProxy Returns an object representing information on a remote Hessian url. |
public static void | remoteMethod Registers a remote method name for a service url. |
public static void | mapRemoteType Sets a mapping between a remote object type to a php object type. |
public void | setDateProvider |
public void | getDateProvider |
public void | errorReporting |
public void | error |
public void | getErrorStack |
public void | isError |
public void | addFilter |
public void | removeFilter |
Method Detail |
---|
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
url
- Remote url $options
create
- Shall it create the object? public static void remoteMethod(string url, string name)
Registers a remote method name for a service url.
url
- Url of the service name
- Name of the remote service method 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.
remoteType
- Name of the remote Class phptype
- Name of the PHP class to create public void setDateProvider(var $provider)
$provider
public void getDateProvider()
public void errorReporting(var $level = null)
$level
public void error()
public void getErrorStack()
public void isError(var $obj)
$obj
public void addFilter(var $obj, var $name = '')
$obj
$name
public void removeFilter(var $name)
$name
Overview Package Tree | HessianPHP |
FRAMES NO FRAMES | |
SUMMARY: FIELD METHOD | DETAIL: FIELD METHOD |