Correction pour la récupération de l'activité
This commit is contained in:
parent
2da9a49174
commit
689566d34c
@ -260,6 +260,15 @@ require_once realpath(dirname(__FILE__)).'/../config/config.php';
|
|||||||
require_once 'framework/fwk.php';
|
require_once 'framework/fwk.php';
|
||||||
require_once 'Metier/insee/classMInsee.php';
|
require_once 'Metier/insee/classMInsee.php';
|
||||||
|
|
||||||
|
//MetadataCache pour la base de données
|
||||||
|
$frontendOptions = array(
|
||||||
|
'lifetime' => 14400,
|
||||||
|
'automatic_serialization' => true
|
||||||
|
);
|
||||||
|
$backendOptions = array();
|
||||||
|
$cache = Zend_Cache::factory('Core','Apc', $frontendOptions, $backendOptions);
|
||||||
|
Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);
|
||||||
|
|
||||||
//Définition bdd metier
|
//Définition bdd metier
|
||||||
$dbConfig = array(
|
$dbConfig = array(
|
||||||
'host' => MYSQL_HOST,
|
'host' => MYSQL_HOST,
|
||||||
@ -597,8 +606,9 @@ function dateFermetureEnData($siren, $nic, $values = false)
|
|||||||
function activiteData($siren, $nic, $values = false)
|
function activiteData($siren, $nic, $values = false)
|
||||||
{
|
{
|
||||||
global $fJur;
|
global $fJur;
|
||||||
$tmp = @$iBodacc->getActiviteReelle($siren, $fJur);
|
$iBodacc = new MBodacc();
|
||||||
$tabData['activite'] = @preg_replace('/ +/', ' ', strtr($tmp,array("\r"=>' ',"\n"=>' ',"\t"=>' ',','=>' ',';'=>' ','"'=>' ',"'"=>' ')));
|
$tmp = $iBodacc->getActiviteReelle($siren, $fJur);
|
||||||
|
$tabData['activite'] = preg_replace('/ +/', ' ', strtr($tmp,array("\r"=>' ',"\n"=>' ',"\t"=>' ',','=>' ',';'=>' ','"'=>' ',"'"=>' ')));
|
||||||
return $tabData;
|
return $tabData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user