getExtraInfos(); $title = htmlspecialchars($extraInfos['name']); $uri = htmlspecialchars($extraInfos['uri']); $entries = ''; foreach($this->getDatas() as $data){ $entryName = is_null($data->name) ? $title : $data->name; $entryAuthor = is_null($data->author) ? $uri : $data->author; $entryTitle = is_null($data->title) ? '' : $data->title; $entryUri = is_null($data->uri) ? '' : $data->uri; $entryTimestamp = is_null($data->timestamp) ? '' : date(DATE_ATOM, $data->timestamp); $entryContent = is_null($data->content) ? '' : 'content) . ']]>'; $entries .= << {$entryName} {$entryAuthor} <![CDATA[{$entryTitle}]]> {$entryUri} {$entryTimestamp} {$entryContent} EOD; } /* TODO : - Security: Disable Javascript ? - : Define new extra info ? - : RFC look with xhtml, keep this in spite of ? */ /* Data are prepared, now let's begin the "MAGIE !!!" */ $toReturn = ''; $toReturn .= << {$title} http{$https}://{$httpHost}{$httpInfo}/ {$entries} EOD; return $toReturn; } public function display(){ // $this // ->setContentType('application/atom+xml; charset=' . $this->getCharset()) // ->callContentType(); return parent::display(); } }