Re: [Calendar] tabulator as arrays

From: Date: Fri, 06 Feb 2004 11:31:04 +0000
Subject: Re: [Calendar] tabulator as arrays
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25528@lists.php.net to get a copy of this message
On Fri, 06 Feb 2004 12:03:23 +0100, Lukas Smith wrote: > I have started to use Calendar in a project (so I hope I am not > asking RTFM questions). It nicely helped me display a month > overview using the "Calendar_Month_Weekdays" class. > > However I didnt really want to have the method calls inside my > templates. I prefer to pass only scalars and arrays to my > templates, just so that I dont start implementing too much logic in > there :-) if you feel brave enough, you can access some private vars directly (at your own risk, of course...): $calendar->day instead of $calendar->thisDay(); > > [snip] > it seems like a decorator class is what you're after: http://pear.php.net/manual/en/package.datetime.calendar.intro-overview.php section "Decorators". or look at examples #10, #11, #16-#19 > I hope some of these ideas are useful .. yep, they are, we'll consider them in a future release. Best regards, Lorenzo

« previous php.pear.dev (#25528) next »