示例#1
0
 /**
  * @brief Méthode qui appelle la vue d'affichage de la page d'accueil
  * @access private
  * @return void
  */
 private function accueil()
 {
     $commentaire = new Commentaire();
     $oeuvresPopulaires = $commentaire->getOeuvresPopulaires();
     $nbOeuvresPopulaires = count($oeuvresPopulaires);
     $noAleatoire = rand(1, $nbOeuvresPopulaires);
     $oeuvreVedette[] = $oeuvresPopulaires[$noAleatoire - 1];
     $photo = new Photo();
     $photoOeuvreVedette = $photo->getPhotoByIdOeuvre($oeuvreVedette[0]["idOeuvre"]);
     $this->oVue = new VueAccueil();
     $this->oVue->setDataGlobal("Accueil", "Page d'accueil", $this->langueAffichage, $this->pAccueil);
     $this->oVue->setData($photoOeuvreVedette);
     $this->oVue->afficherMeta();
     $this->oVue->afficherEntete();
     $this->oVue->afficherBody();
     $this->oVue->afficherPiedPage();
 }