Thanks Ryan, this makes it much clearer for me. Your events are showing up in startdate order, even if that particular instance of the event has been cancelled.
I'm not sure exactly what the preferred Zend method of dealing with these cases is. You could try adding: $query->singleevents = true; $query->showdeleted = false; after line 91 of your gcal_GetEvents function to clean up your events before display. Even if that doesn't work, the picture will become clearer. Ray On Sep 13, 2008, at 5:44 AM, Ryan K wrote: > For some reason, it won't let me post in the discussions, so I'm going > to try and post to you as the author. > > I have a few links for you to check out. > > 1. http://www.kaginweb.com/rhk/cal/testcal.php > This is the events grabbed between today and a month from today by > date (i.e. from the 13th to next month on the 13th). The first event > is out of order, but the rest of the events are fine. This first > event is an instance of a recurring event that was canceled. > > 2. http://www.kaginweb.com/rhk/cal/testcal2.php > This is the events grabbed between a month from today and two months > from today by date. The first three events are out of order, of which > the second and third events are canceled instances of recurring > events. The next event has no when field. The following two events > are again out of order - these are recurring events where the href > field is grabbing the original entry and not the entry that is > specified on that date. > > 3. http://www.kaginweb.com/rhk/cal/testcal.txt > This is the text version of number 1. > > Hope this helps, > Ryan K > > On Sep 12, 10:39 am, "Ray Baxter" <[EMAIL PROTECTED]> wrote: >> Could you post some data? Preferably an accessible url, but baring >> that a redacted feed would suffice. >> >> Ray >> >> On Fri, Sep 12, 2008 at 7:32 AM, Ryan K <[EMAIL PROTECTED]> wrote: >> >>> I have done setOrderBy('starttime'), and for the most part, it >>> returns >>> accurate results. However, it unreliably but consistently puts the >>> first few events out of order (i.e. for a particular range of dates, >>> it consistently puts "x" amount of events out of order at the >>> beginning, but depending on the dates one chooses, the value "x" >>> unreliably changes to something else that I don't know how to >>> predict). >> >>> I still receive entries without the when field filled in (I believe >>> these are either recurring events or events that I have deleted the >>> instance), and still receive entries with the when field filled in >>> yet >>> they are deleted instances. >> >>> Thanks for the help thus far. >> >>> On Sep 12, 2:30 am, Ray Baxter <[EMAIL PROTECTED]> wrote: >>>> On your final point, I'm not sure how this works in Zend, but the >>>> default is for events to be returned to you in lastmodified >>>> order. The >>>> alternative, which it sounds like you are expecting, is >>>> orderby=starttime, but this is not the default. >> >>>> Ray >> >>>> On Sep 11, 2008, at 9:45 PM, Ryan K wrote: >> >>>>> I have created a recurring event and then proceeded to remove >>>>> certain >>>>> instances of the event. When I then use the Zend framework to >>>>> query >>>>> for the events, these deleted instances still show up. >>>>> Furthermore, >>>>> certain instances of events have a blank "when" entry. Finally, >>>>> when >>>>> grabbing dates in an ascending order, the first few entries are >>>>> out of >>>>> order (but the rest are in order). If desired, I can post my >>>>> code. >> >>>>> Any help is greatly appreciated. >> >>>> -- >>>> Ray Baxterhttp://67central.com/bc/ -- Ray Baxter http://67central.com/bc/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
