172,12 → 172,15 |
return $resultat; |
} |
|
private function formaterChaineEncodeeBddPhotoflora($chaine) { |
return $chaine = preg_replace_callback("/(&#[0-9]+;)/", function($m) { |
private function callBackReplace($m) { |
return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES"); |
}, $chaine); |
} |
|
private function formaterChaineEncodeeBddPhotoflora($chaine) { |
return $chaine = preg_replace_callback("/(&#[0-9]+;)/", array($this, 'callBackReplace') |
, $chaine); |
} |
|
// TODO: garder ancien web service pour retour xml ou bien fusionner les deux ? |
private function formaterRetourXml($photographies) { |
// Formatage du xml |