Rev 215 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
class NomDetailsGenerique {
private $parametres = null;
private $ressources = null;
private $nomDao = null;
private $nomFormateur = null;
private $nom = array();
public function __construct(Ressources $ressources, Parametres $parametres, NomDAO $nomDao, NomFormateur $nomFormateur) {
$this->ressources = $ressources;
$this->parametres = $parametres;
$this->nomDao = $nomDao;
$this->nomFormateur = $nomFormateur;
}
public function consulter() {
$this->nom = $this->nomDao->rechercherInfosNom();
$retour = $this->formaterDetails();
return $retour;
}
private function formaterDetails() {
$this->nomFormateur->setNomAFormater($this->nom);
$this->nomFormateur->setChampsRetour($this->parametres->getListe('retour.champs'));
$details = $this->nomFormateur->formaterDetails();
return $details;
}
}
?>