From 3361b4d594a502a0182278d02f6209f039e6eea6 Mon Sep 17 00:00:00 2001
From: Regis Houssin
Date: Thu, 5 Nov 2009 08:31:40 +0000
Subject: [PATCH] Fix: class "soapclient_nusoap" rename "nusoap_client" in
version 0.7.3
---
htdocs/oscommerce_ws/clients/index.php | 4 ++--
.../clients/osc_customer.class.php | 10 +++++-----
htdocs/oscommerce_ws/commandes/index.php | 4 ++--
.../commandes/osc_order.class.php | 16 +++++++--------
htdocs/oscommerce_ws/index.php | 10 +++++-----
htdocs/oscommerce_ws/produits/OSCvente.php | 14 ++++++-------
htdocs/oscommerce_ws/produits/categories.php | 6 +++---
htdocs/oscommerce_ws/produits/index.php | 2 +-
.../produits/osc_product.class.php | 20 +++++++++----------
htdocs/societe/checkvat/checkVatPopup.php | 4 ++--
htdocs/webservices/client.php | 4 ++--
11 files changed, 47 insertions(+), 47 deletions(-)
diff --git a/htdocs/oscommerce_ws/clients/index.php b/htdocs/oscommerce_ws/clients/index.php
index a6ccdd59b78..27a590f2cda 100644
--- a/htdocs/oscommerce_ws/clients/index.php
+++ b/htdocs/oscommerce_ws/clients/index.php
@@ -43,7 +43,7 @@ require_once("../includes/configure.php");
$parameters = array("custid"=>"0");
// Set the WebService URL
-$client = new soapclient_nusoap(OSCWS_DIR."ws_customers.php");
+$client = new nusoap_client(OSCWS_DIR."ws_customers.php");
$result = $client->call("get_Client",$parameters );
@@ -97,7 +97,7 @@ elseif (!($err = $client->getError()) )
print "
";
}
else {
- dol_print_error('',"Aucun client trouvé");
+ dol_print_error('',"Aucun client trouv�");
}
}
else {
diff --git a/htdocs/oscommerce_ws/clients/osc_customer.class.php b/htdocs/oscommerce_ws/clients/osc_customer.class.php
index feee9c7d4ff..0e7159f42d4 100644
--- a/htdocs/oscommerce_ws/clients/osc_customer.class.php
+++ b/htdocs/oscommerce_ws/clients/osc_customer.class.php
@@ -63,14 +63,14 @@ class Osc_customer
$this->osc_custid = $id ;
- /* les initialisations nécessaires */
+ /* les initialisations n�cessaires */
$this->db = $DB;
}
/**
-* \brief Charge le client OsC en mémoire
+* \brief Charge le client OsC en m�moire
* \param id Id du client dans OsC
* \return int <0 si ko, >0 si ok
*/
@@ -98,7 +98,7 @@ class Osc_customer
$parameters = array("custid"=>$id);
// Set the WebService URL
- $client = new soapclient_nusoap(OSCWS_DIR."/ws_customers.php");
+ $client = new nusoap_client(OSCWS_DIR."/ws_customers.php");
// Call the WebSeclient->fault)rvice and store its result in $obj
$obj = $client->call("get_Client",$parameters );
@@ -131,9 +131,9 @@ class Osc_customer
}
/**
-* \brief Mise à jour de la table de transition
+* \brief Mise � jour de la table de transition
* \param oscid Id du client dans OsC
-* \param socid champ société.rowid
+* \param socid champ soci�t�.rowid
* \return int <0 si ko, >0 si ok
*/
function transcode($oscid, $socid)
diff --git a/htdocs/oscommerce_ws/commandes/index.php b/htdocs/oscommerce_ws/commandes/index.php
index cb6ac643240..f07a52c1331 100644
--- a/htdocs/oscommerce_ws/commandes/index.php
+++ b/htdocs/oscommerce_ws/commandes/index.php
@@ -44,7 +44,7 @@ require_once("../includes/configure.php");
$parameters = array("orderid"=>"0");
// Set the WebService URL
-$client = new soapclient_nusoap(OSCWS_DIR."ws_orders.php");
+$client = new nusoap_client(OSCWS_DIR."ws_orders.php");
$result = $client->call("get_Order",$parameters );
@@ -98,7 +98,7 @@ elseif (!($err = $client->getError()) )
print "";
}
else {
- dol_print_error('',"Aucune commande trouvée");
+ dol_print_error('',"Aucune commande trouv�e");
}
}
else {
diff --git a/htdocs/oscommerce_ws/commandes/osc_order.class.php b/htdocs/oscommerce_ws/commandes/osc_order.class.php
index 1e65a72238a..1fb26b5aa5d 100644
--- a/htdocs/oscommerce_ws/commandes/osc_order.class.php
+++ b/htdocs/oscommerce_ws/commandes/osc_order.class.php
@@ -64,12 +64,12 @@ class Osc_order
$this->osc_orderid = $id ;
$this->db = $DB;
- /* les initialisations nécessaires */
+ /* les initialisations n�cessaires */
}
/**
-* \brief Charge la commande OsC en mémoire
+* \brief Charge la commande OsC en m�moire
* \param id Id de la commande dans OsC
* \return int <0 si ko, >0 si ok
*/
@@ -97,7 +97,7 @@ class Osc_order
$parameters = array("orderid"=>$id);
// Set the WebService URL
- $client = new soapclient_nusoap(OSCWS_DIR."/ws_orders.php");
+ $client = new nusoap_client(OSCWS_DIR."/ws_orders.php");
// Call the WebSeclient->fault)rvice and store its result in $obj
$obj = $client->call("get_Order",$parameters );
@@ -157,8 +157,8 @@ class Osc_order
$commande->date = $this->osc_orderdate;
$commande->date_commande = $this->osc_orderdate;
/* on force */
- $commande->statut = 0; //à voir
- $commande->source = 0; // à vérifier
+ $commande->statut = 0; //� voir
+ $commande->source = 0; // � v�rifier
//les lignes
@@ -170,7 +170,7 @@ class Osc_order
$commande->lines[$i]->qty = $this->osc_lines[$i][quantity];
$commande->lines[$i]->tva_tx = $this->osc_lines[$i][products_tax];
$commande->lines[$i]->fk_product = $oscproduct->get_productid($this->osc_lines[$i][products_id]);
- $commande->lines[$i]->remise_percent = 0; // à calculer avec le finalprice
+ $commande->lines[$i]->remise_percent = 0; // � calculer avec le finalprice
}
// les frais de port
$fp = sizeof($this->osc_lines);
@@ -190,9 +190,9 @@ class Osc_order
/**
-* \brief Mise à jour de la table de transition
+* \brief Mise � jour de la table de transition
* \param oscid Id du produit dans OsC
-* \param prodid champ référence
+* \param prodid champ r�f�rence
* \return int <0 si ko, >0 si ok
*/
function transcode($osc_orderid, $doli_orderid)
diff --git a/htdocs/oscommerce_ws/index.php b/htdocs/oscommerce_ws/index.php
index 963d40115d0..ef8494884e2 100644
--- a/htdocs/oscommerce_ws/index.php
+++ b/htdocs/oscommerce_ws/index.php
@@ -56,7 +56,7 @@ require_once("./includes/configure.php");
$parameters = array();
// Set the WebService URL
-$client = new soapclient_nusoap(OSCWS_DIR."ws_orders.php");
+$client = new nusoap_client(OSCWS_DIR."ws_orders.php");
/*
/* Chiffre d'affaire
@@ -109,7 +109,7 @@ print '';
print_titre($langs->trans("Orders"));
/*
- * 5 dernières commandes reçues
+ * 5 derni�res commandes re�ues
*/
print '';
@@ -147,7 +147,7 @@ else {
print " ";
/*
- * 5 dernières commandes en attente
+ * 5 derni�res commandes en attente
*/
print '';
@@ -184,7 +184,7 @@ else {
print " ";
/*
- * Commandes à traiter
+ * Commandes � traiter
*/
print '';
@@ -223,7 +223,7 @@ print " ";
print ' | ';
/*
-* Derniers clients qui ont commandé
+* Derniers clients qui ont command�
*/
print '';
diff --git a/htdocs/oscommerce_ws/produits/OSCvente.php b/htdocs/oscommerce_ws/produits/OSCvente.php
index 6f568573b43..8574436e641 100644
--- a/htdocs/oscommerce_ws/produits/OSCvente.php
+++ b/htdocs/oscommerce_ws/produits/OSCvente.php
@@ -27,7 +27,7 @@ $html = new Form($db);
if ($_GET["action"] == 'liste' )
{
- // affichage des produits en vente à partir de la tavle de transco
+ // affichage des produits en vente a partir de la tavle de transco
$sql = "SELECT o.doli_prodidp as idp, o.osc_prodid as oscid, o.osc_lastmodif as date ";
$sql .= "FROM ".MAIN_DB_PREFIX."osc_product as o";
@@ -69,9 +69,9 @@ if ($_GET["action"] == 'vendre' )
$prod['desc'] = $product->description;
$prod['quant'] = $_POST["qty"];
$prod['prix'] = convert_backprice($product->price);
- // à gèrer $product->tx_tva
+ // a gerer $product->tx_tva
$prod['poids'] = $product->weight;
- // gèrer $product->weight_units
+ // gerer $product->weight_units
$prod['dispo'] = '';
$prod['status'] = '1';
$prod['fourn'] = '';
@@ -98,12 +98,12 @@ if ($_GET["action"] == 'vendre' )
//WebService Client.
require_once(NUSOAP_PATH."/nusoap.php");
- // Création
+ // Creation
// Set the parameters to send to the WebService
$parameters = array("prod"=>$prod);
// Set the WebService URL
- $client = new soapclient_nusoap(OSCWS_DIR."ws_articles.php");
+ $client = new nusoap_client(OSCWS_DIR."ws_articles.php");
// Call the WebService and store its result in $result.
$result = $client->call("create_article",$parameters );
@@ -116,7 +116,7 @@ if ($_GET["action"] == 'vendre' )
{
if ($result > 0)
{
- // création de l'enregistrement dans osc_products
+ // creation de l'enregistrement dans osc_products
$oscprod->transcode($result,$_POST["idprod"]);
print "le produit ".$product->ref." ".$product->libelle.' est en vente en ligne consulter
';
print "\n";
@@ -127,7 +127,7 @@ if ($_GET["action"] == 'vendre' )
}
else
{
- print "Le produit ".$_POST["idprod"].' est déjà en vente en ligne : consulter
';
+ print "Le produit ".$_POST["idprod"].' est deja en vente en ligne : consulter
';
print "\n";
}
}
diff --git a/htdocs/oscommerce_ws/produits/categories.php b/htdocs/oscommerce_ws/produits/categories.php
index cf847847258..af03bbde6e1 100644
--- a/htdocs/oscommerce_ws/produits/categories.php
+++ b/htdocs/oscommerce_ws/produits/categories.php
@@ -240,7 +240,7 @@ else
$sql .= "LEFT OUTER JOIN ".MAIN_DB_PREFIX."osc_categories as oc ON oc.dolicatid = c.rowid ";
$sql .= "WHERE c.visible = 1 AND c.type = 0";
- print_barre_liste("Correspondance des catégories", $page, "categories.php");
+ print_barre_liste("Correspondance des cat�gories", $page, "categories.php");
dol_syslog("Osc_Categorie.class::get_Osccat sql=".$sql);
$resql=$db->query($sql);
@@ -291,12 +291,12 @@ else $catid= 0;
$parameters = array("catid"=>$catid);
// Set the WebService URL
-$client = new soapclient_nusoap(OSCWS_DIR."ws_articles.php");
+$client = new nusoap_client(OSCWS_DIR."ws_articles.php");
$result = $client->call("get_categorylist",$parameters );
if ($client->fault) {
- if ($client->faultcode == 'Server') print 'Il n\'y a pas de catégorie fille pour la catégorie '.$catid.'
';
+ if ($client->faultcode == 'Server') print 'Il n\'y a pas de cat�gorie fille pour la cat�gorie '.$catid.'
';
else dol_print_error('',"erreur de connexion ".$client->getError());
}
diff --git a/htdocs/oscommerce_ws/produits/index.php b/htdocs/oscommerce_ws/produits/index.php
index 71e24300f7d..b2cbc915d44 100644
--- a/htdocs/oscommerce_ws/produits/index.php
+++ b/htdocs/oscommerce_ws/produits/index.php
@@ -42,7 +42,7 @@ require_once("../includes/configure.php");
$parameters = array();
// Set the WebService URL
-$client = new soapclient_nusoap(OSCWS_DIR."ws_articles.php");
+$client = new nusoap_client(OSCWS_DIR."ws_articles.php");
$result = $client->call("get_listearticles",$parameters );
if ($client->fault) {
diff --git a/htdocs/oscommerce_ws/produits/osc_product.class.php b/htdocs/oscommerce_ws/produits/osc_product.class.php
index f960dc4d1a6..f6eba1d1136 100644
--- a/htdocs/oscommerce_ws/produits/osc_product.class.php
+++ b/htdocs/oscommerce_ws/produits/osc_product.class.php
@@ -60,14 +60,14 @@ class Osc_product
$this->osc_id = $id ;
- /* les initialisations nécessaires */
+ /* les initialisations n�cessaires */
$this->db = $DB;
}
/**
- * \brief Charge le produit OsC en mémoire
+ * \brief Charge le produit OsC en m�moire
* \param id Id du produit dans OsC
- * \param ref Ref du produit dans OsC (doit être unique dans OsC)
+ * \param ref Ref du produit dans OsC (doit �tre unique dans OsC)
* \return int <0 si ko, >0 si ok
*/
function fetch($id='',$ref='')
@@ -94,7 +94,7 @@ class Osc_product
$parameters = array("id"=>$id,"ref"=>$ref);
// Set the WebService URL
- $client = new soapclient_nusoap(OSCWS_DIR."/ws_articles.php");
+ $client = new nusoap_client(OSCWS_DIR."/ws_articles.php");
// Call the WebSeclient->fault)rvice and store its result in $obj
$obj = $client->call("get_article",$parameters );
@@ -150,9 +150,9 @@ class Osc_product
}
/**
-* \brief Mise à jour de la table de transition
+* \brief Mise � jour de la table de transition
* \param oscid Id du produit dans OsC
-* \param prodid champ référence
+* \param prodid champ r�f�rence
* \return int <0 si ko, >0 si ok
*/
function transcode($oscid, $prodid)
@@ -225,12 +225,12 @@ class Osc_product
/**
- * \brief création d'un article dans base OSC
+ * \brief cr�ation d'un article dans base OSC
* \param $user utilisateur
*/
function create($user)
{
- /* non implémentée */
+ /* non impl�ment�e */
}
/**
@@ -239,7 +239,7 @@ class Osc_product
*/
function update($id, $user)
{
- /* non implémentée */
+ /* non impl�ment�e */
}
/**
@@ -248,7 +248,7 @@ class Osc_product
*/
function delete($id)
{
- /* non implémentée */
+ /* non impl�ment�e */
}
}
?>
diff --git a/htdocs/societe/checkvat/checkVatPopup.php b/htdocs/societe/checkvat/checkVatPopup.php
index 403e4e899d0..c3a94a03445 100644
--- a/htdocs/societe/checkvat/checkVatPopup.php
+++ b/htdocs/societe/checkvat/checkVatPopup.php
@@ -62,8 +62,8 @@ else
"vatNumber" => $_REQUEST["vatNumber"]);
// Set the WebService URL
- dol_syslog("Create soapclient_nusoap for URL=".$WS_DOL_URL);
- $soapclient = new soapclient_nusoap($WS_DOL_URL);
+ dol_syslog("Create nusoap_client for URL=".$WS_DOL_URL);
+ $soapclient = new nusoap_client($WS_DOL_URL);
// Call the WebService and store its result in $result.
dol_syslog("Call method ".$WS_METHOD);
diff --git a/htdocs/webservices/client.php b/htdocs/webservices/client.php
index 1816abe8ff7..16442b5fa25 100644
--- a/htdocs/webservices/client.php
+++ b/htdocs/webservices/client.php
@@ -35,8 +35,8 @@ $WS_METHOD = 'getVersions';
$parameters = array("param1"=>"value1");
// Set the WebService URL
-dol_syslog("Create soapclient_nusoap for URL=".$WS_DOL_URL);
-$soapclient = new soapclient_nusoap($WS_DOL_URL);
+dol_syslog("Create nusoap_client for URL=".$WS_DOL_URL);
+$soapclient = new nusoap_client($WS_DOL_URL);
if ($soapclient)
{
$soapclient->soap_defencoding='UTF-8';