Just downloaded this from the trunk. Anyone have any idea how to use it?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hi,
This calendar module is just a platform which is supposed to be linked later with the events module !
$monthView = new CalendarMonthView( 'name3', 20 );
//$monthView->removeWednesday();
$monthView->showWeekLeft();
$monthView->showWeekRight();
$monthView->startBySunday();
$weekView = new CalendarWeekView( 'name5', $number = 6 );
$weekView->setTimePeriod( new CalendarTimePeriod( new CalendarTime( 8 ), new CalendarTime( 22, 35 ) ));
$weekView->setSubPeriodsLength( new CalendarTime( 0, 45 ) );
$calendar = new Calendar(
$this,
'mycalendar',
array(
//new CalendarDayView( 'name1', 6 ),
/*new CalendarMonthView( 'name3', $number = 2, $month = 6 ),
new CalendarYearView( 'name4', $number = 3 ),*/
//$monthView,
$weekView
)
);
$time1 = new CalendarTime( 22, 48 );
$time2 = new CalendarTime( 23, 58 );
$period = new CalendarTimePeriod( $time1, $time2 );
return $calendar;
Interesting. I was actually thinking about contributing an events module. Is that well underway? If so when might we expect it?