I've got it working, just one small item..
<?php
include('class.rss.php');
define('ROOT_DIR', '/home/somerenh/public_html/buntplanner/');
require_once('/home/somerenh/public_html/buntplanner/Domain/Access/namespace.php');
require_once('/home/somerenh/public_html/buntplanner/Domain/Access/ResourceRepository.php');
require_once('/home/somerenh/public_html/buntplanner/Domain/Access/ReservationViewRepository.php');
$rss = new rssFeed;
$itemsarray = array();
$resRepo = new ReservationViewRepository();
$reservations = $resRepo->GetReservationList(Date::Now(), Date::Now()->AddDays(30));
foreach($reservations as $reservation) {
$itemsarray[] = array("title"=> $reservation->Title, "resource"=> $reservation->ResourceName, "starttime"=> $reservation->StartDate->Format('(d-m) G:i'), "endtime"=> $reservation->EndDate->Format('G:i'));
}
$rss_array = array(
"encoding"=>"UTF-8",
"language"=>"en-us",
"title"=>"Buntplanner", // This field is mandatory
"description"=>"Bezetting voor de komende dag in de Bunt", // This field is mandatory
"link"=>"http://planner.mysite.nl", // This field is mandatory
"items"=>$itemsarray
);
header("Content-type: application/xml");
echo $rss->rss($rss_array, "rss.xsl"); // Second parameter is not required
?>
Now all resources are being showed, is is possible to show only a set of resources, for example only resource id's 1,4 en 6?
Thanks,
Wouter.