I can't figure out why this is not wanting to update the calendar. I'm
using the ZEND classes and this script worked for a split second to
update the calendar to TESTING now I can update it back!!??




        
///////////////////////////////////////////////////////////////////////////////////////////////////
        //      Update Event
        function updateEvent ( $CalendarURL, $title, $where, $content,
$startDate, $startTime, $endDate, $endTime )    {
                if( $CalendarURL == "" ) return;

                echo $CalendarURL.','.$title.','.$where.','.$content.','.
$startDate.','.$startTime.','.$endDate.','.$endTime;

                $tmpCalendarURL = "http://www.google.com/calendar/feeds/";.
$CalendarURL."/private/full";

                try{
                        //  Format the event data
                        $eventOld =                     
$this->gdataCal->getCalendarEventEntry
( $tmpCalendarURL );
                        $eventOld->title =      $this->gdataCal->newTitle( 
$title );
                        $eventOld->where =      array( 
$this->gdataCal->newWhere( $where ) );
                        $eventOld->content= $this->gdataCal->newContent( 
$content );
                        $when =                         
$this->gdataCal->newWhen();

                        if ($startTime=='all_day') {
                                $when->startTime = 
"{$startDate}{$this->tzOffset}:00";
                        } else {
                                $when->startTime = 
"{$startDate}T{$startTime}:00.000{$this-
>tzOffset}:00";
                        }

                        if ($endTime=='all_day') {
                                $when->endTime = 
"{$endDate}{$this->tzOffset}:00";
                        } else {
                                $when->endTime = 
"{$endDate}T{$endTime}:00.000{$this->tzOffset}:
00";
                        }

                        $eventOld->when = array($when);
                        $eventOld->save();

                } catch ( Exception $e ) {
                        echo "<BR><BR>Error: " . $e->getMessage() . "<br />\n";
                        return;
                }
        }

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to