Fix: checkstyle
This commit is contained in:
parent
bbbfc8c018
commit
65090c582d
@ -341,7 +341,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
foreach(array('internal','external') as $source)
|
foreach(array('internal','external') as $source)
|
||||||
{
|
{
|
||||||
$tab = $object->liste_contact(-1,$source);
|
$tab = $object->liste_contact(-1,$source);
|
||||||
$num=sizeof($tab);
|
$num=count($tab);
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2006-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2006-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2012 JF FERRY <jfefe@aternatik.fr>
|
* Copyright (C) 2012 JF FERRY <jfefe@aternatik.fr>
|
||||||
|
* Copyright (C) 2012 Regis Houssin <regis@dolibarr.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -65,7 +66,7 @@ $server->wsdl->addComplexType(
|
|||||||
'sourceapplication' => array('name'=>'sourceapplication','type'=>'xsd:string'),
|
'sourceapplication' => array('name'=>'sourceapplication','type'=>'xsd:string'),
|
||||||
'login' => array('name'=>'login','type'=>'xsd:string'),
|
'login' => array('name'=>'login','type'=>'xsd:string'),
|
||||||
'password' => array('name'=>'password','type'=>'xsd:string'),
|
'password' => array('name'=>'password','type'=>'xsd:string'),
|
||||||
'entity' => array('name'=>'entity','type'=>'xsd:string'),
|
'entity' => array('name'=>'entity','type'=>'xsd:string')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -112,10 +113,14 @@ $server->wsdl->addComplexType(
|
|||||||
'SOAP-ENC:Array',
|
'SOAP-ENC:Array',
|
||||||
array(),
|
array(),
|
||||||
array(
|
array(
|
||||||
array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:line[]')
|
array(
|
||||||
|
'ref'=>'SOAP-ENC:arrayType',
|
||||||
|
'wsdl:arrayType'=>'tns:line[]'
|
||||||
|
)
|
||||||
),
|
),
|
||||||
'tns:line'
|
'tns:line'
|
||||||
);
|
);
|
||||||
|
|
||||||
$server->wsdl->addComplexType(
|
$server->wsdl->addComplexType(
|
||||||
'LinesArray2',
|
'LinesArray2',
|
||||||
'complexType',
|
'complexType',
|
||||||
@ -132,7 +137,6 @@ $server->wsdl->addComplexType(
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
$server->wsdl->addComplexType(
|
$server->wsdl->addComplexType(
|
||||||
'order',
|
'order',
|
||||||
'complexType',
|
'complexType',
|
||||||
@ -187,7 +191,10 @@ $server->wsdl->addComplexType(
|
|||||||
'SOAP-ENC:Array',
|
'SOAP-ENC:Array',
|
||||||
array(),
|
array(),
|
||||||
array(
|
array(
|
||||||
array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:order[]')
|
array(
|
||||||
|
'ref'=>'SOAP-ENC:arrayType',
|
||||||
|
'wsdl:arrayType'=>'tns:order[]'
|
||||||
|
)
|
||||||
),
|
),
|
||||||
'tns:order'
|
'tns:order'
|
||||||
);
|
);
|
||||||
@ -215,8 +222,14 @@ $server->wsdl->addComplexType(
|
|||||||
'all',
|
'all',
|
||||||
'',
|
'',
|
||||||
array(
|
array(
|
||||||
'result_code' => array('name'=>'result_code','type'=>'xsd:string'),
|
'result_code' => array(
|
||||||
'result_label' => array('name'=>'result_label','type'=>'xsd:string'),
|
'name'=>'result_code',
|
||||||
|
'type'=>'xsd:string'
|
||||||
|
),
|
||||||
|
'result_label' => array(
|
||||||
|
'name'=>'result_label',
|
||||||
|
'type'=>'xsd:string'
|
||||||
|
),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -230,11 +243,10 @@ $styleuse='encoded'; // encoded/literal/literal wrapped
|
|||||||
// Better choice is document/literal wrapped but literal wrapped not supported by nusoap.
|
// Better choice is document/literal wrapped but literal wrapped not supported by nusoap.
|
||||||
|
|
||||||
// Register WSDL
|
// Register WSDL
|
||||||
$server->register('getOrder',
|
$server->register(
|
||||||
// Entry values
|
'getOrder',
|
||||||
array('authentication'=>'tns:authentication','id'=>'xsd:string','ref'=>'xsd:string','ref_ext'=>'xsd:string'),
|
array('authentication'=>'tns:authentication','id'=>'xsd:string','ref'=>'xsd:string','ref_ext'=>'xsd:string'), // Entry values
|
||||||
// Exit values
|
array('result'=>'tns:result','order'=>'tns:order'), // Exit values
|
||||||
array('result'=>'tns:result','order'=>'tns:order'),
|
|
||||||
$ns,
|
$ns,
|
||||||
$ns.'#getOrder',
|
$ns.'#getOrder',
|
||||||
$styledoc,
|
$styledoc,
|
||||||
@ -242,11 +254,10 @@ $server->register('getOrder',
|
|||||||
'WS to get a particular invoice'
|
'WS to get a particular invoice'
|
||||||
);
|
);
|
||||||
|
|
||||||
$server->register('getOrdersForThirdParty',
|
$server->register(
|
||||||
// Entry values
|
'getOrdersForThirdParty',
|
||||||
array('authentication'=>'tns:authentication','idthirdparty'=>'xsd:string'),
|
array('authentication'=>'tns:authentication','idthirdparty'=>'xsd:string'), // Entry values
|
||||||
// Exit values
|
array('result'=>'tns:result','orders'=>'tns:OrdersArray2'), // Exit values
|
||||||
array('result'=>'tns:result','orders'=>'tns:OrdersArray2'),
|
|
||||||
$ns,
|
$ns,
|
||||||
$ns.'#getOrdersForThirdParty',
|
$ns.'#getOrdersForThirdParty',
|
||||||
$styledoc,
|
$styledoc,
|
||||||
@ -254,11 +265,10 @@ $server->register('getOrdersForThirdParty',
|
|||||||
'WS to get all orders of a third party'
|
'WS to get all orders of a third party'
|
||||||
);
|
);
|
||||||
|
|
||||||
$server->register('createOrder',
|
$server->register(
|
||||||
// Entry values
|
'createOrder',
|
||||||
array('authentication'=>'tns:authentication','order'=>'tns:order'),
|
array('authentication'=>'tns:authentication','order'=>'tns:order'), // Entry values
|
||||||
// Exit values
|
array('result'=>'tns:result','id'=>'xsd:string'), // Exit values
|
||||||
array('result'=>'tns:result','id'=>'xsd:string'),
|
|
||||||
$ns,
|
$ns,
|
||||||
$ns.'#createOrder',
|
$ns.'#createOrder',
|
||||||
$styledoc,
|
$styledoc,
|
||||||
@ -268,11 +278,10 @@ $server->register('createOrder',
|
|||||||
|
|
||||||
|
|
||||||
// Register WSDL
|
// Register WSDL
|
||||||
$server->register('validOrder',
|
$server->register(
|
||||||
// Entry values
|
'validOrder',
|
||||||
array('authentication'=>'tns:authentication','id'=>'xsd:string'),
|
array('authentication'=>'tns:authentication','id'=>'xsd:string'), // Entry values
|
||||||
// Exit values
|
array('result'=>'tns:result'), // Exit values
|
||||||
array('result'=>'tns:result'),
|
|
||||||
$ns,
|
$ns,
|
||||||
$ns.'#validOrder',
|
$ns.'#validOrder',
|
||||||
$styledoc,
|
$styledoc,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user