getExtraInfos();
$title = htmlspecialchars($extraInfos['name']);
$uri = htmlspecialchars($extraInfos['uri']);
$atomquery = str_replace('format=Html', 'format=Atom', htmlentities($_SERVER['QUERY_STRING']));
$mrssquery = str_replace('format=Html', 'format=Mrss', htmlentities($_SERVER['QUERY_STRING']));
$entries = '';
foreach($this->getDatas() as $data){
$entryAuthor = isset($data['author']) ? '
by: ' . $data['author'] . '
' : '';
$entryTitle = isset($data['title']) ? $this->sanitizeHtml(strip_tags($data['title'])) : '';
$entryUri = isset($data['uri']) ? $data['uri'] : $uri;
$entryTimestamp = isset($data['timestamp']) ? '' : '';
$entryContent = isset($data['content']) ? '' . $this->sanitizeHtml($data['content']). '
' : '';
$entries .= <<
{$entryTimestamp}
{$entryAuthor}
{$entryContent}
EOD;
}
/* Data are prepared, now let's begin the "MAGIE !!!" */
$toReturn = <<
{$title}
{$entries}
EOD;
return $toReturn;
}
public function display() {
$this
->setContentType('text/html; charset=' . $this->getCharset())
->callContentType();
return parent::display();
}
}