';
}
/*
* End of the week, i.e. after Friday, before Saturday
*/
public function weekEndTemplate() {
echo '';
}
/*
* Template for a single day in the calendar
*/
public function dayTemplate($date, $dayObj) {
global $showPrivate;
echo "
getIsWeekendString()." ".$dayObj->getIsTodayString()."\"
id=\"c$date\">
$date
\n";
foreach ($dayObj->data as $d) {
echo $d;
}
echo '
';
}
/*
* Template for days out of the range of the current month, i.e. the first day of the next month
*/
public function offDayTemplate($date) {
echo '';
echo ''.$date.'';
echo '
';
}
/**
* Get all the data for the calendar. This method is required
* from GenericCalendar. Requires that a 2d array be returned, the first index
* being the day of the month.
* @return Array 2d array of [int day][array of strings to print in day]
*/
public function gatherData() {
$calendarInfo = array();
$calendarInfo[1] = array(
"Go to the dentist's @ 1:30pm
",
"Prepare for meeting tomorrow"
);
$calendarInfo[2] = array(
"Meeting with clients @ 12:00pm"
);
$calendarInfo[9] = array(
"Go to your mom's house for dinner
",
"Eat som delicious desert"
);
$calendarInfo[15] = array(
"Work on your artwork!"
);
return $calendarInfo;
}
}
?>