Re: Calendar_Week beginner question

From: Date: Sat, 10 Jul 2004 12:01:14 +0000
Subject: Re: Calendar_Week beginner question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13602@lists.php.net to get a copy of this message
Hi, On Sat, 10 Jul 2004 12:50:13 +0200, Peter Monsson wrote: > > I'm having problems with the Calendar package. I'd like to extend > example 12 to contain the week number (1-52) aswell but I can't > make the thisWeek() function work. Maybe I'm looking in the wrong > direction so if anyone can help me I'll be very grateful the thisWeek() method is only available on Calendar_Week objects, so you have to build your month objects using: define ('CALENDAR_MONTH_STATE',CALENDAR_USE_MONTH_WEEKS); instead of define ('CALENDAR_MONTH_STATE',CALENDAR_USE_MONTH_WEEKDAYS); I committed a complete example in the CVS repository, you can see it here: http://cvs.php.net/co.php/pear/Calendar/docs/examples/21.php HTH Regards, -- Lorenzo Alberton http://pear.php.net/user/quipo

« previous php.pear.general (#13602) next »