Overview  Package  Tree HessianPHP

HessianPHP.Server

Class ServiceInfoPHP4

HessianPHP.Server.ServiceInfoPHP4

class ServiceInfoPHP4

Displays a web page with information about the real service objects and handles calls to it's methods PHP5 version uses the new Reflection API

Author:
Vegeta
Version:
1.0

Field Summary
public var$service
public var$name
public var$underscoreInclude
Method Summary
public voidregisterObject

Registers the wrapped object that will perform the methods of the web service.

public voiddisplayInfo
protected mixedcallMethod

Dynamically calls a method in the wrapped object passing parameters from the request
and returns the result.

public voidisMethodCallable
Field Detail

service

public var $service

name

public var $name

underscoreInclude

public var $underscoreInclude = false
Method Detail

registerObject()

public void registerObject(object service)

Registers the wrapped object that will perform the methods of the web service.

Parameters:
service - Real service object

displayInfo()

public void displayInfo()

callMethod()

protected mixed callMethod(string method,
                           array params,
                           var $writer)

Dynamically calls a method in the wrapped object passing parameters from the request
and returns the result.

Generates a fault if the method does not exist.

Parameters:
method - Name of the method
params - Array of parameters to be passed
$writer
Returns:
Returned value from the service or null if fault

isMethodCallable()

public void isMethodCallable(var $method)
Parameters:
$method

Overview  Package  Tree HessianPHP