getExtraInfos(); $title = htmlspecialchars($extraInfos['name']); $uri = htmlspecialchars($extraInfos['uri']); $atomquery = str_replace('format=HtmlFormat', 'format=AtomFormat', htmlentities($_SERVER['QUERY_STRING'])); $entries = ''; foreach($this->getDatas() as $data){ $entryUri = is_null($data->uri) ? $uri : $data->uri; $entryTitle = is_null($data->title) ? '' : $this->sanitizeHtml(strip_tags($data->title)); $entryTimestamp = is_null($data->timestamp) ? '' : ''; $entryAuthor = is_null($data->author) ? '' : '

by: ' . $data->author . '

'; $entryContent = is_null($data->content) ? '' : '
' . $this->sanitizeHtml($data->content). '
'; $entries .= <<

{$entryTitle}

{$entryTimestamp} {$entryAuthor} {$entryContent} EOD; } /* Data are prepared, now let's begin the "MAGIE !!!" */ $toReturn = << {$title}

{$title}

{$entries} EOD; return $toReturn; } public function display() { $this ->setContentType('text/html; charset=' . $this->getCharset()) ->callContentType(); return parent::display(); } }