public function renderRetouite(Touite $touite, touitosHandler $db_touitos, $pseudo) { $auteur = $db_touitos->get($touite->getIdAuteur()); echo '<article class = "message" id="' . $touite->getIdMessage() . '">'; echo '<p><a class="pseudo" href="profile.php?user='******'">@' . $pseudo . '</a>a retouité</p>'; echo '<div class="message_container">'; $this->renderPic($auteur); echo '<div class="containeur">'; echo '<header class= "info">'; echo '<div class="pseudo"><a href="profile.php?user='******'">@' . htmlentities($auteur->getPseudo()) . '</a></div>'; echo '<div class="date">' . ($newDate = date("d/m/Y", strtotime($touite->getLaDate())) . '</div>'); echo '</header>'; $this->echo_message($touite); $this->renderFooter($touite); echo '</div></div>'; echo '</article>'; }
function gettouitos($bd, $id) { $th = new touitosHandler($bd); return $th->get($id); }