[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/doc/soap nusoap2phpgwapi
From: |
Caeies |
Subject: |
[Phpgroupware-cvs] phpgwapi/doc/soap nusoap2phpgwapi |
Date: |
Sat, 09 Sep 2006 11:40:49 +0000 |
CVSROOT: /cvsroot/phpgwapi
Module name: phpgwapi
Changes by: Caeies <Caeies> 06/09/09 11:40:49
Modified files:
doc/soap : nusoap2phpgwapi
Log message:
modification to avoid $Id expansion in the code and some syntax in
generated files
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/doc/soap/nusoap2phpgwapi?cvsroot=phpgwapi&r1=1.1&r2=1.2
Patches:
Index: nusoap2phpgwapi
===================================================================
RCS file: /cvsroot/phpgwapi/phpgwapi/doc/soap/nusoap2phpgwapi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- nusoap2phpgwapi 26 Feb 2006 20:14:11 -0000 1.1
+++ nusoap2phpgwapi 9 Sep 2006 11:40:49 -0000 1.2
@@ -18,7 +18,7 @@
"\t* @package phpgwapi\n".
"\t* @subpackage communication\n".
"\t* Please see original header after this one and
class.nusoap_base.inc.php\n".
- "\t* @version \$Id: nusoap2phpgwapi,v 1.1 2006/02/26 20:14:11 Caeies
Exp $\n".
+ "\t* @version \$Id: nusoap2phpgwapi,v 1.2 2006/09/09 11:40:49 Caeies
Exp $\n".
"\t*/\n\n";
print "Processing ".$argv[1]."\n";
@@ -80,20 +80,20 @@
}
print "class.$tmp[1].inc.php\n";
$a[$i][0] = "class.$tmp[1].inc.php";
- } elseif ( ereg('\$Id: nusoap2phpgwapi,v 1.1 2006/02/26 20:14:11 Caeies
Exp $line) ) {
+ } elseif ( ereg('\$Id[:]',$line) ) {
/* Replace the version wih the based on */
- $line = ereg_replace('\$Id: nusoap2phpgwapi,v 1.1 2006/02/26
20:14:11 Caeies Exp $ I d :', $line ) ;
+ $line = ereg_replace('\$Id[:]', '$ I d :', $line ) ;
} elseif ( ereg('new ', $line) && !
ereg('\$new|makeObj|lib_bwcheck',$line) && !ereg('\*|//',$line) &&
!ereg('->debug', $line) ) {
if ( ! ereg('eval', $line) && ! ereg('"',$line) && !ereg('new
\$class',$line) ) {
if ( !ereg('new [[:alpha:]]+;',$line) ) {
/* Replace the '(' for the constructor into a
'",' */
$line = ereg_replace('\(','",',$line);
- /* Then replace the new by the CreateObject */
- $line = ereg_replace('new ','CreateObject
("phpgwapi.', $line );
+ /* Then replace the new by the createObject */
+ $line = ereg_replace('new ','createObject
("phpgwapi.', $line );
} else {
if ( ! ereg('\.',$line) )
{
- $line = ereg_replace('new
','CreateObject ("phpgwapi.', $line );
+ $line = ereg_replace('new
','createObject ("phpgwapi.', $line );
$line = ereg_replace(';','");',$line);
}
else
@@ -108,10 +108,10 @@
see the soapclient class */
// $line = ereg_replace('\(','\\",',$line);
// $line = ereg_replace('eval\\\",','eval(',$line );
-// $line = ereg_replace('new ','CreateObject
(\"phpgwapi.', $line );
+// $line = ereg_replace('new ','createObject
(\"phpgwapi.', $line );
}
}
- if ( ereg('Createobject',$line) && ereg('soap_XMLSchema ',$line) )
+ if ( ereg('createobject',$line) && ereg('soap_XMLSchema ',$line) )
{
$line = ereg_replace('soap_XMLSchema ','soap_XMLSchema',$line);
}
@@ -284,7 +284,7 @@
* @copyright Portions Copyright (C) 2003,2004 Free Software Foundation,
Inc. http://www.fsf.org/
* @package phpgwapi
* @subpackage communication
- * @version $Id: nusoap2phpgwapi,v 1.1 2006/02/26 20:14:11 Caeies Exp $
+ * @version $Id: nusoap2phpgwapi,v 1.2 2006/09/09 11:40:49 Caeies Exp $
* @internal This project began based on code from the 2 projects below,
* @internal and still contains some original code. The licenses of both
must be respected.
* @internal XML-RPC for PHP; SOAP for PHP
@@ -476,7 +476,7 @@
{
$type = gettype($v);
}
- $new_val =
CreateObject('phpgwapi.soapval','item',$type,$v);
+ $new_val =
createObject('phpgwapi.soapval','item',$type,$v);
$this->debug($new_val->debug_str);
$this->value[] = $new_val;
}
@@ -539,7 +539,7 @@
$type = gettype($v);
$this->debug("got type
'$type' for value '$v' from php gettype()!");
}
- $new_val =
CreateObject('phpgwapi.soapval',$k,$type,$v);
+ $new_val =
createObject('phpgwapi.soapval',$k,$type,$v);
$this->debug($new_val->debug_str);
$this->value[] = $new_val;
}
- [Phpgroupware-cvs] phpgwapi/doc/soap nusoap2phpgwapi,
Caeies <=