ajout méthode getIdentiteAGS
This commit is contained in:
parent
d410da7eb1
commit
2684e71b30
@ -30,6 +30,36 @@ function scoresws_identite($siret, $siren, $idEntreprise)
|
||||
return $return;
|
||||
}
|
||||
|
||||
function scoresws_identite_ags($siret, $siren, $idEntreprise)
|
||||
{
|
||||
global $client, $firephp;
|
||||
|
||||
if (($siret*1)==0 || ($siren*1)<100){ $fileName = 'identite-'.$idEntreprise;
|
||||
}else{ $fileName = 'identiteags-'.$siret; }
|
||||
cache_filename($fileName);
|
||||
|
||||
if( 0 && cache_exist() && !( preg_match('/\bsaisie\b/i', $_SESSION['tabInfo']['droits']) || $_SESSION['tabInfo']['mode_edition']==1 ) )
|
||||
{
|
||||
$return = cache_get('etab');
|
||||
}else{
|
||||
$return = null;
|
||||
try {
|
||||
$O = $client->getIdentiteAGS($siret, $idEntreprise);
|
||||
$return = $O['result'];
|
||||
cache_delete();
|
||||
cache_add('etab', $return);
|
||||
} catch (SoapFault $fault) {
|
||||
require_once 'soaperror.php';
|
||||
processSoapFault($client,$fault,$_SESSION['tabInfo']);
|
||||
$return = false;
|
||||
}
|
||||
}
|
||||
$firephp->log($return, 'return');
|
||||
return $return;
|
||||
|
||||
}
|
||||
|
||||
|
||||
function scoresws_annonces($siret, $siren, $idEntreprise, $vue, $idan)
|
||||
{
|
||||
global $client, $firephp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user