]> granicus.if.org Git - php/commitdiff
StudlyCaps fix.
authorDmitry Stogov <dmitry@php.net>
Thu, 1 Apr 2004 14:37:03 +0000 (14:37 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 1 Apr 2004 14:37:03 +0000 (14:37 +0000)
ext/soap/interop/client_round2_interop.php
ext/soap/interop/client_round2_params.php

index 60d144ec7b13e5260420c8a996fa06b25c57fd9e..a8a3fad81037e028a2b2cfe80c351937a1a62150 100644 (file)
@@ -309,9 +309,9 @@ class Interop_Client
     function decodeSoapval($soapval)
     {
         if (gettype($soapval) == "object" &&
-            (strcasecmp(get_class($soapval),"soapparam") == 0 ||
-             strcasecmp(get_class($soapval),"soapvar") == 0)) {
-                if (strcasecmp(get_class($soapval),"soapparam") == 0)
+            (strcasecmp(get_class($soapval),"SoapParam") == 0 ||
+             strcasecmp(get_class($soapval),"SoapVar") == 0)) {
+                if (strcasecmp(get_class($soapval),"SoapParam") == 0)
                     $val = $soapval->param_data->enc_value;
                 else
                     $val = $soapval->enc_value;
@@ -321,8 +321,8 @@ class Interop_Client
         if (is_array($val)) {
             foreach($val as $k => $v) {
                 if (gettype($v) == "object" &&
-                    (strcasecmp(get_class($soapval),"soapparam") == 0 ||
-                    strcasecmp(get_class($soapval),"soapvar") == 0)) {
+                    (strcasecmp(get_class($soapval),"SoapParam") == 0 ||
+                    strcasecmp(get_class($soapval),"SoapVar") == 0)) {
                     $val[$k] = $this->decodeSoapval($v);
                 }
             }
index afacec28bf5f05036c65cbf0e84b09f87737459c..04f9fd64a43ea2432fe670f96fb3a57737be4a65 100644 (file)
@@ -59,7 +59,7 @@ class SOAP_Test {
         if ($params) {
         $v = array_values($params);
         if (gettype($v[0]) == 'object' &&
-            (get_class($v[0]) == 'soapvar' || get_class($v[0]) == 'soapparam'))
+            (get_class($v[0]) == 'SoapVar' || get_class($v[0]) == 'SoapParam'))
             $this->type = 'soapval';
         }
     }
@@ -146,7 +146,7 @@ function make_2d($x, $y)
 }
 
 function soap_value($name, $value, $type, $type_name=NULL, $type_ns=NULL) {
-    return new soapparam(new soapvar($value,$type,$type_name,$type_ns),$name);
+    return new SoapParam(new SoapVar($value,$type,$type_name,$type_ns),$name);
 }
 
 class SOAPStruct {
@@ -217,7 +217,7 @@ $soap_tests['base'][] = new SOAP_Test('echoIntegerArray', array('inputIntegerArr
 $soap_tests['base'][] = new SOAP_Test('echoIntegerArray',
         array('inputIntegerArray' =>
             soap_value('inputIntegerArray',
-                       array(new soapvar(12345,XSD_INT),new soapvar(654321,XSD_INT)),
+                       array(new SoapVar(12345,XSD_INT),new SoapVar(654321,XSD_INT)),
                     SOAP_ENC_ARRAY,"ArrayOfint","http://soapinterop.org/xsd")));
 
 //***********************************************************
@@ -233,7 +233,7 @@ $soap_tests['base'][] = new SOAP_Test('echoFloatArray', array('inputFloatArray'
 $soap_tests['base'][] = new SOAP_Test('echoFloatArray',
         array('inputFloatArray' =>
             soap_value('inputFloatArray',
-                       array(new soapvar(123.45,XSD_FLOAT),new soapvar(654.321,XSD_FLOAT)),
+                       array(new SoapVar(123.45,XSD_FLOAT),new SoapVar(654.321,XSD_FLOAT)),
                     SOAP_ENC_ARRAY,"ArrayOffloat","http://soapinterop.org/xsd")));
 //***********************************************************
 // Base echoStruct
@@ -251,9 +251,9 @@ $soap_tests['base'][] = new SOAP_Test('echoStructArray', array('inputStructArray
         $soapstruct,$soapstruct,$soapstruct)));
 $soap_tests['base'][] = new SOAP_Test('echoStructArray', array('inputStructArray' =>
          soap_value('inputStructArray',array(
-           new soapvar($soapstruct,SOAP_ENC_OBJECT,"SOAPStruct","http://soapinterop.org/xsd"),
-           new soapvar($soapstruct,SOAP_ENC_OBJECT,"SOAPStruct","http://soapinterop.org/xsd"),
-           new soapvar($soapstruct,SOAP_ENC_OBJECT,"SOAPStruct","http://soapinterop.org/xsd")),
+           new SoapVar($soapstruct,SOAP_ENC_OBJECT,"SOAPStruct","http://soapinterop.org/xsd"),
+           new SoapVar($soapstruct,SOAP_ENC_OBJECT,"SOAPStruct","http://soapinterop.org/xsd"),
+           new SoapVar($soapstruct,SOAP_ENC_OBJECT,"SOAPStruct","http://soapinterop.org/xsd")),
          SOAP_ENC_ARRAY,"ArrayOfSOAPStruct","http://soapinterop.org/xsd")));