Calendars
Matt Carrico
matt at telus.net
Thu Feb 28 14:07:27 PST 2002
> One of the features that seems to be missing from all of them, including
the
> PHP events calendar this example is based on, is events greater than a
days
> length.
Resource booking and Gant chart display were what I really needed out of the
calendar. Unfortunately I haven't got that far with the project yet.
How to, *efficiently*, tell whether a resource is booked *at any given time*
is a problem that I'm still a little fuzzy on. A booking start date could be
years away from the date being displayed or queried against, yet would still
have to be picked up. My current planned solution is to set a minimum number
of flags[1] stemming from the start time. For example, a resource booked for
all of 2002, Jan 2003, and Feb 1, 2003 could get away with three flags set
in the appropriate year, month, and day tables. These flags could then be
adjusted when changes were made to the schedule. The date and time tables
could be traversed up to check the availability of a resource at a given
time. Minute --> Hour --> Day --> Month --> Year, no flags, it must be free.
Is there a more simple or a conventional way of dealing with this? Are there
any inconsistencies in my logic? Any comments on or off list would be
welcome.
Tony, what's the address of your project at Sourgeforge?
best regards,
Matt
[1] With the name of the resource as the name and the address of the booking
as the value.
More information about the Frontier-Users
mailing list