Hi Kitty, At the moment, the Zend GData client library does not provide the ability to directly add reminder when it is dealing with recurring event. This exceptional case is caused by the fact that there is no <gd:when> element within a recurring event entry, and typically a <gd:reminder> would exist inside a <gd:when> element. The Zend client library handle the general case and thus does not provide a way to add reminder when there is no <gd:when> specified.
There is a bit of a hack to get around this limitation by leveraging the ability to send raw XML directly to the server: 1) create an XML template that looks like this and named it "createrecurrence.xml" - <entry xmlns="http://www.w3.org/2005/Atom" xmlns:gd='http:// schemas.google.com/g/2005'> <title type="text">[TITLE]</title> <content type="text">[CONTENT]</content> <gd:reminder method="all"/> <gd:where xmlns:gd="http://schemas.google.com/g/2005" valueString="[WHERE]"/> <gd:recurrence xmlns:gd="http://schemas.google.com/g/ 2005">[RECURRENCE]</gd:recurrence> </entry> 2) read in this XML template and replace those [TITLE], [CONTENT], etc with your specific data and submit a POST request with the raw XML content: $title = 'recurring event'; $summary = 'blah'; $where = 'here'; $recurrence = "DTSTART:20071004T100000Z DTEND:20071004T110000Z RRULE:FREQ=WEEKLY;WKST=SU;BYDAY=TH;UNTIL=20071129T203000Z"; $recurrence = str_replace(" ", "\r\n", $recurrence); $xml = file_get_contents('createrecurrence.xml'); $xml = str_replace('[TITLE]', $title, $xml); $xml = str_replace('[SUMMARY]', $summary, $xml); $xml = str_replace('[WHERE]', $where, $xml); $xml = str_replace('[RECURRENCE]', $recurrence, $xml); $gdataCal->post($xml, $uri); This would create a recurring event that inherit the default reminder setting of your calendar (default reminder comes from method="all"). Hope it helps, Austin On Nov 6, 12:06 am, kitty <[EMAIL PROTECTED]> wrote: > This question may be silly, but I can't find an answer in the > documentation. Is there any way to set reminders for recurring event > using Zend Gdata library? > > When I try to set it using when property, it is just ignored. If I try > to assign reminders property of the event, it says 'Property > _reminders does not exist'. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
