Minahito
minah****@users*****
2006年 6月 28日 (水) 14:44:21 JST
Index: xoops2jp/html/class/XCube_ServiceManager.class.php diff -u xoops2jp/html/class/XCube_ServiceManager.class.php:1.1.2.2 xoops2jp/html/class/XCube_ServiceManager.class.php:1.1.2.3 --- xoops2jp/html/class/XCube_ServiceManager.class.php:1.1.2.2 Tue Jun 27 15:42:19 2006 +++ xoops2jp/html/class/XCube_ServiceManager.class.php Wed Jun 28 14:44:21 2006 @@ -11,11 +11,11 @@ * 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 create 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. + * 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. */ class XCube_ServiceManager { @@ -49,7 +49,13 @@ */ function addService($name, &$service) { + if (isset($this->mServices[$name])) { + return false; + } + $this->mServices[$name] =& $service; + + return true; } /**