/** * function Afficher les Details de la Photo Utilisateur * @access public * @auteur: German Mahecha */ private function afficherDetailsPhotoUtilisateur($idPhoto) { $comment = 0; $oUtilisateur = new MUtilisateurs('', '', '', '', '', '', '', '', ''); $unUtilisateur = $oUtilisateur->getUtilisateurParLogin($_SESSION['session']); $oVue = new VueDefaut(); $oVue->afficheHeader(); $uVue = new VueUtilisateur(); $uVue->afficherProfilUtilisateur($unUtilisateur); $oPhoto = new MPhotos('', '', '', ''); $aphoto = $oPhoto->getPhotoParId($idPhoto); //Get Oeuvre par idPhoto $oOeuvre = new MOeuvres('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''); $unOeuvre = $oOeuvre->getOeuvreParIdPhoto($idPhoto); //Utilisateur qui a proposé la photo $unUtilisateurProposition = $oUtilisateur->getUtilisateurParIdPhotoPropose($idPhoto); //Get commentaires par IdPhoto $oComment = new MCommentaires('', '', ''); $aComments = $oComment->getAllCommentParIdPhoto($idPhoto); $uVue->afficherDetailsPhotoUtilisateur($aComments, $unOeuvre, $aphoto, $unUtilisateur, $unUtilisateurProposition); $pos = 10; foreach ($aComments as $com) { $comment++; } $likes = $oPhoto->getCombienVOtesParPhoto($idPhoto); $uVue->afficherAsideUtilisateur($pos, $likes, $comment); $oVue->afficheFooter(false, false, false, false); }