| Line 175... |
Line 175... |
| 175 |
|
175 |
|
| 176 |
private function ajouterMaillesDansBdd() {
|
176 |
private function ajouterMaillesDansBdd() {
|
| 177 |
$aInserer = $this->mailles->formaterPourInsertionBdd();
|
177 |
$aInserer = $this->mailles->formaterPourInsertionBdd();
|
| 178 |
$champsTable = Config::get('champs_table_mailles');
|
178 |
$champsTable = Config::get('champs_table_mailles');
|
| 179 |
$tableInsertion = 'mailles_'.$this->nomSource;
|
179 |
$tableInsertion = 'mailles_'.$this->nomSource;
|
| 180 |
$ordresInsertion = [];
|
180 |
$ordresInsertion = array();
|
| 181 |
$this->getBdd()->requeter("DELETE FROM {$tableInsertion} WHERE zoom={$aInserer[0]['zoom']}");
|
181 |
$this->getBdd()->requeter("DELETE FROM {$tableInsertion} WHERE zoom={$aInserer[0]['zoom']}");
|
| 182 |
foreach ($aInserer as $ligne) {
|
182 |
foreach ($aInserer as $ligne) {
|
| 183 |
$codeMaille = $this->nomSource.'.'.$ligne['zoom'].'-'.$ligne['indexLat'].'-'.$ligne['indexLng'];
|
183 |
$codeMaille = $this->nomSource.'.'.$ligne['zoom'].'-'.$ligne['indexLat'].'-'.$ligne['indexLng'];
|
| 184 |
$sql = "('{$codeMaille}',{$ligne['zoom']},{$ligne['indexLng']},{$ligne['indexLat']},".
|
184 |
$sql = "('{$codeMaille}',{$ligne['zoom']},{$ligne['indexLng']},{$ligne['indexLat']},".
|