Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1518 → Rev 1520

/trunk/scripts/modules/codeinseecommune/Codeinseecommune.php
26,13 → 26,10
protected $parametres_autorises = array(
'-n' => array(true, true, 'Nom du fichier ou du dossier à traiter'));
 
 
 
// +-------------------------------------------------------------------------------------------------------------------+
public function executer() {
include_once dirname(__FILE__).'/bibliotheque/Dao.php';
 
$this->dao = new Dao();
// Récupération de paramétres
// Lancement de l'action demandée
42,12 → 39,12
// à effectuer manuellement au premier lancement du script
$this->creerColonne();
$this->calculerCodeInsee();
//$this->modifierCodeInsee();
$this->modifierCodeInsee();
break;
case 'sanscorrespondance' :
// devrait être être l'option utilisée dans le cron quotidien
$this->calculerCodeInseeSansCorrespondance();
//$this->modifierCodeInsee();
$this->modifierCodeInsee();
break;
case 'colonne' :
$this->creerColonne();
100,11 → 97,7
}
$i++;
$this->afficherAvancement(' Lignes traitées ', $i);
// pause toutes les 1000 requêtes
if($i %1000 == 0) {
sleep(2);
}
$this->dao->testerActiviteConnection();
}
echo "\n";
$fin = microtime(true);
113,7 → 106,7
echo "-------------------------------------------------------------------\n";
echo "\n";
}
private function modifierCodeInsee() {
$this->dao->modifierCodeInsee();
}