Gestion des données insee
This commit is contained in:
parent
59df244e79
commit
ffc27e0766
@ -46,12 +46,25 @@ class GestionController extends Zend_Controller_Action
|
||||
}
|
||||
if (!$errForm) {
|
||||
|
||||
$dataInsee = 0;
|
||||
// Est ce qu'il existe une données insee
|
||||
require_once 'Scores/Enrichissement.php';
|
||||
$fieldsM = new Enrichissement();
|
||||
$fields = $fieldsM->getFields();
|
||||
foreach ( $fields as $key => $val) {
|
||||
if ( array_key_exists('insee', $key) && $val['insee']===true) {
|
||||
$dateInsee = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$data = array(
|
||||
'idClient' => $params['idClient'],
|
||||
'login' => $params['login'],
|
||||
'reference' => $params['reference'],
|
||||
'criteres' => json_encode($params['criteres']),
|
||||
'tarifLigne' => $params['tarifLigne'],
|
||||
'dataInsee' => $dataInsee,
|
||||
'dateAjout' => date('Y-m-d H:i:s'),
|
||||
'actif' => 1,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user