Flare rss http://localhost Rss. en-us'; return $details; } /** * Get items of the rss * This will appear as the content of the rss * * @return (string) $items Include items tag of xml string and the end of xml string in rss document */ function getItems(){ require_once(INCLUDEPATH . 'flar/functions/db_person.php'); require_once(INCLUDEPATH . 'flar/Blog_entry.php'); $blog_entry = new Flar_Blog_entry(); $blog_entry->orderBy('idblog_entry DESC'); $blog_entry->find(); $items = ''; while( $blog_entry->fetch()) { $date = $blog_entry->date; // get person name if ( $blog_entry->PERSON_ID ) $_person_name_array = get_person_name_by_id( $blog_entry->PERSON_ID ); if ($_person_name_array["firstname"]) $_person_name = $_person_name_array["firstname"]." "; $_person_name = $_person_name.$_person_name_array["lastname"]; //add information in blog entry into item tag in xml string $items .= ' '. $blog_entry->titel . ' (' . $_person_name . ') http://localhost text .']]> '.$date.' '. $_person_name .' '; } //Free array $blog_entry->free(); $items .= ' '; return $items; } //print out the fully xml string for rss document header("Content-Type: application/rss+xml"); echo getDetails() . getItems(); ?>