Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: NoOverlap  (Read 319 times)
0 Members and 1 Guest are viewing this topic.
Jon Lloyd
Guest
« on: February 21, 2003, 05:49:00 PM »

In checking for nooverlap I would like to check
the times (of course) but also a room code.

Could someone point me at the code (line) to
modify.  Basically, I don't mind 2 events
having the same time as long as they're in
different rooms.

Jon

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: February 21, 2003, 08:41:00 PM »

What is the event field key you keep the room identifier in? The title field?

Dan O.

------------------

Logged
Jon Lloyd
Guest
« Reply #2 on: February 22, 2003, 07:26:00 AM »

Actually I'm adding a field called 'roomcode'

I was changing the code: (line 21)
   foreach $as (@$all)
   {
      next if $as->{roomcode} != $roomcode;                           #don't check other rooms
      my (@astart, @aend);                                 #use new arrays for speed and memory

I had assumed that this change would only check for
overlap if the rooms were identical. I guess there's
more to it.

Jon


Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: February 22, 2003, 12:57:00 PM »

** I guess there's more to it. **

Considerably!

None of the event details are available in that plug-in's routine, it only deals with the schedule data itself which is stored separately. Each time a possible conflict was encountered the event details would have to be loaded for both the present event and the possible conflicting event. Only then could the necessary fields compared.

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: