XCube
The foundational Core of XoopsCube Legacy
 
Loading...
Searching...
No Matches
XCube_ServiceManager Class Reference

Public Member Functions

 addService ( $name, &$service)
 
 addWSDL ( $name, $url)
 
 addXCubeService ( $name, &$service)
 
getService ( $name)
 
searchXCubeService ( $name)
 
createClient (&$service)
 
createServer (&$service)
 

Data Fields

 $mServices = []
 
 $mCreateClient
 
 $mCreateServer
 

Member Function Documentation

◆ addService()

addService ( $name,
& $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.

Parameters
string$name
XCube_Service$service
Returns
bool

◆ addWSDL()

addWSDL ( $name,
$url )

Add WSDL URL. $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.

Parameters
$name
$url
Returns
bool

◆ addXCubeService()

addXCubeService ( $name,
& $service )

This member function will be removed at beta version.

Parameters
$name
$service
Returns
bool
See also
XCube_ServiceManager\addService()
Deprecated

◆ createClient()

& 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.

Parameters
$service
Returns
null

◆ searchXCubeService()

& searchXCubeService ( $name)

This member function will be removed at beta version.

Parameters
$name
Returns
mixed|null
Deprecated
See also
XCube_ServiceManager\getService()

Field Documentation

◆ $mServices

$mServices = []

Array of XCube_Service instances.


The documentation for this class was generated from the following file: