Petit correction sur l'enrichissement

This commit is contained in:
Michael RICOIS 2012-04-18 14:04:24 +00:00
parent d972d9d545
commit 277467012f

View File

@ -227,7 +227,16 @@ $tabDico = array(
),
);
//Définition bdd
//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 local
$dbConfig = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini', 'databases');
try {
$db = Zend_Db::factory($dbConfig->db);
@ -261,15 +270,6 @@ require_once realpath(dirname(__FILE__)).'/../config/config.php';
require_once 'framework/fwk.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
$dbConfig = array(
'host' => MYSQL_HOST,
@ -277,6 +277,7 @@ $dbConfig = array(
'username' => MYSQL_USER,
'password' => MYSQL_PASS,
'dbname' => MYSQL_DEFAULT_DB,
'persistent' => true,
'driver_options' => array(MYSQLI_INIT_COMMAND => 'SET NAMES UTF8;'),
);
try {
@ -403,7 +404,6 @@ foreach($tabExtract as $key)
}
}
}
//Ajout colonne obligatoire SiretValide
$tabEntete[] = 'SiretValide';
unset($tabExtract);
@ -544,9 +544,7 @@ foreach($tabIdentifiant as $item)
}
fclose($fp);
if ($opts->id) {
$commandesM->update(array(
'dateStop' => date('Y-m-d H:i:s'),
), "id = ".$commande->id);
$commandesM->update( array('dateStop' => date('Y-m-d H:i:s')) , "id = ".$commande->id);
}