45,7 → 45,7 |
|
// Mettre en forme le résultat et l'envoyer pour affichage*/ |
$resultat = new ResultatService(); |
$resultat->corps = $commentaire; |
$resultat->corps = array('entete' => $this->navigation->getEntete(), 'resultats' => $commentaire); |
|
return $resultat; |
} |
66,8 → 66,9 |
|
private function formaterCommentaires($infos) { |
$retour = array(); |
$idCommentaire = $infos['id_commentaire']; |
foreach ($this->mapping as $nomChampBdd => $nomAttributSortie) { |
$retour[$nomAttributSortie] = $infos[$nomChampBdd]; |
$retour[$idCommentaire][$nomAttributSortie] = $infos[$nomChampBdd]; |
} |
return $retour; |
} |