I have the following code and I'm trying to figure out how to get calendar.name to be in the fRecordSet so I can display it.
Any help would be great.
static function featured($date = null) {
$date = ($date ? $date : new fDate());
$candidates = fRecordSet::buildFromSQL(
'CalendarEvent',
array('SELECT "calendar_events".*
FROM "calendar_events"
JOIN "calendars" ON "calendars"."calendar_id" = "calendar_events"."calendar_id"
WHERE "calendars"."publication_id" = %i
AND "calendar_events"."date" = %d
AND "calendar_events"."featured" = %b', Publication::id(), $date, true)
);
if($candidates->count() > 0) {
return $candidates;
}
return null;
}