343,21 → 343,37 |
$pts = explode(',', $pts); |
foreach ($pts as $pt) { |
switch ($pt) { |
case 'start' : $this->table_retour[$champ.'.start'] = $tab['start']; break; |
case 'end' : $this->table_retour[$champ.'.end'] = $tab[' end']; break; |
case 'code' : $this->table_retour[$champ.'.code'] = $val; break; |
case 'href' : $this->table_retour[$champ.'.href'] = |
$this->ajouterHrefAutreProjet($champ, '', $val); break; |
case 'signification' : $this->table_retour[$champ] = $this->ajouterSignification($champ, $val); break; |
case 'details' : if ($champ == 'couverture_spatiale') { |
case 'start' : |
if (isset($this->table_retour[$champ.'.start'])) { |
$this->table_retour[$champ.'.start'] = $tab['start']; |
} |
break; |
case 'end' : |
if (isset($this->table_retour[$champ.'.end'])) { |
$this->table_retour[$champ.'.end'] = $tab['end']; |
} |
break; |
case 'code' : |
$this->table_retour[$champ.'.code'] = $val; |
break; |
case 'href' : |
$this->table_retour[$champ.'.href'] = $this->ajouterHrefAutreProjet($champ, '', $val); |
break; |
case 'signification' : |
$this->table_retour[$champ] = $this->ajouterSignification($champ, $val); |
break; |
case 'details' : |
if ($champ == 'couverture_spatiale') { |
$this->afficherCouvertureSpatiale($champ, $tab); |
} else { |
$this->afficherTableDetails($champ, $tab); |
} break; |
default : $this->table_retour[$champ.'.'.$pt] = $tab[$pt]; break; |
} |
break; |
default : |
$this->table_retour[$champ.'.'.$pt] = $tab[$pt]; |
} |
} |
} |
|
|
|