Class XCube_ServiceManager
This class manages XCube_Service instances, searches these, creates a much client instance. Now, the purpose of this class is for inside of own XOOPS site. In other words, this class doesn't work for publishing web services. About these separated working, the core team shall examine.
XCube namespace can't contain the SOAP library directly. Delegate mechanism is good for this class. This class creates a client instance which to connect to a service, with following the kind of the service. For example, if the specified service is really web service, SOAP client has to be created. But, if the service is a virtual service of XCube, virtual client has to be created.
public
|
|
public
boolean
|
#
addService( $name $name, $service & $service )
Add service object. $name must be unique in the list of service. If the service which has the same name, is a member of the list, return false. |
public
|
|
public
&
|
|
public
&
|
#
createClient( & $service )
Create client instance which to connect to a service, with following the kind of the service. Then return that instance. For example, if the specified service is really web service, SOAP client has to be created. But, if the service is a virtual service of XCube, virtual client has to be created. |
public
&
|
public
Array
|
$mServices | array() |
#
Array of XCube_Service instances. |
public
|
$mCreateClient | null |
|
public
|
$mCreateServer | null |