cvs: pear /SOAP WSDL.php
| From: | Jan Schneider | Date: | Thu, 26 May 2005 17:37:57 +0000 |
| Subject: | cvs: pear /SOAP WSDL.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32138@lists.php.net to get a copy of this message | ||
yunosh Thu May 26 13:37:57 2005 EDT
Modified files:
/pear/SOAP WSDL.php
Log:
Avoid double quotes in generated code.
Fix indention and other whitespace in generated constructor for proxies with
parameters.
http://cvs.php.net/diff.php/pear/SOAP/WSDL.php?r1=1.76&r2=1.77&ty=u
Index: pear/SOAP/WSDL.php
diff -u pear/SOAP/WSDL.php:1.76 pear/SOAP/WSDL.php:1.77
--- pear/SOAP/WSDL.php:1.76 Tue May 3 17:12:44 2005
+++ pear/SOAP/WSDL.php Thu May 26 13:37:57 2005
@@ -17,7 +17,7 @@
// | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author |
// +----------------------------------------------------------------------+
//
-// $Id: WSDL.php,v 1.76 2005/05/03 21:12:44 chagenbu Exp $
+// $Id: WSDL.php,v 1.77 2005/05/26 17:37:57 yunosh Exp $
//
require_once 'SOAP/Base.php';
require_once 'SOAP/Fault.php';
@@ -407,7 +407,7 @@
if ($argarray) {
$argarray .= ', ';
}
- $argarray .= "\"$argname\" => \$" . $argname;
+ $argarray .= "'$argname' => \$" . $argname;
}
function _elementArg(&$args, &$argarray, &$_argtype, $_argname)
@@ -496,26 +496,26 @@
if (is_array($this->proxy) && count($this->proxy)) {
$class = "class $classname extends SOAP_Client\n{\n" .
- " function $classname(\$path = \"$clienturl\")\n{\n" .
- " \$this->SOAP_Client(\$path, 0, 0,
- array(";
+ " function $classname(\$path = '$clienturl')\n {\n" .
+ " \$this->SOAP_Client(\$path, 0, 0,\n" .
+ ' array(';
foreach ($this->proxy as $key => $val) {
if (is_array($val)) {
- $class .= "\"$key\" => array(";
+ $class .= "'$key' => array(";
foreach ($val as $key2 => $val2) {
- $class .= "\"$key2\" => \"$val2\",";
+ $class .= "'$key2' => '$val2', ";
}
$class .= ')';
} else {
- $class .= "\"$key\" => \"$val\",";
+ $class .= "'$key' => '$val', ";
}
}
- $class .= "));\n }\n";
- $class = str_replace(',))', '))', $class);
+ $class .= "));\n }\n";
+ $class = str_replace(', ))', '))', $class);
} else {
$class = "class $classname extends SOAP_Client\n{\n" .
- " function $classname(\$path = \"$clienturl\")\n {\n" .
+ " function $classname(\$path = '$clienturl')\n {\n" .
" \$this->SOAP_Client(\$path, 0);\n" .
" }\n";
}