public function renderMessage($offset) { $db_touite = new TouiteHandler($this->getBd()); $db_touitos = new touitosHandler($this->getBd()); $auteur = $db_touitos->get($this->id); $message = $db_touite->getListMessage($this->id, $offset); if (!empty($message)) { foreach ($message as $key => $touite) { if ($touite->getType() == 1) { $this->render($touite, $auteur); } else { $this->renderRetouite($touite, $db_touitos, htmlentities($auteur->getPseudo())); } } return true; } return false; }