Set busy or away for google calendar

4 messages Options
Embed this post
Permalink
wizhippo

Set busy or away for google calendar

Reply Threaded More More options
Print post
Permalink
I would think you would do soemthing along this line

                // Create a new entry using the calendar service's magic factory method
                $event = $service->newEventEntry();
               
                // Populate the event with the desired information
                // Note that each attribute is crated as an instance of a matching class
                $event->title = $service->newTitle("<a href=\"$url\">$name</a>");
                $event->where = array($service->newWhere($location));
                $event->content = $service->newContent($description);
       
This is what i am not sure of.

$event->transparency = $service->newTransparency('busy');

How do i do this correctly?
Jochen Hartmann

Re: Set busy or away for google calendar

Reply Threaded More More options
Print post
Permalink
Hi Douglas,

Couldn't you just use the event's ->setTransparency method?

http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_Kind_EventEntry.html#setTransparency

Let me know if that helps
Cheers,
- J

On Thu, May 15, 2008 at 10:01 AM, Douglas Hammond <[hidden email]> wrote:

> I would think you would do soemthing along this line
>
>                // Create a new entry using the calendar service's magic factory method
>                $event = $service->newEventEntry();
>
>                // Populate the event with the desired information
>                // Note that each attribute is crated as an instance of a matching class
>                $event->title = $service->newTitle("<a href=\"$url\">$name</a>");
>                $event->where = array($service->newWhere($location));
>                $event->content = $service->newContent($description);
>
> This is what i am not sure of.
>
> $event->transparency = $service->newTransparency('busy');
>
> How do i do this correctly?
>
wizhippo

Re: Set busy or away for google calendar

Reply Threaded More More options
Print post
Permalink
I would think so but to what value?

I have tried busy/away true false. Event the schema.

Any Ideas would be great

On Fri, May 16, 2008 at 10:42 AM, Jochen Hartmann <[hidden email]> wrote:

> Hi Douglas,
>
> Couldn't you just use the event's ->setTransparency method?
>
> http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_Kind_EventEntry.html#setTransparency
>
> Let me know if that helps
> Cheers,
> - J
>
> On Thu, May 15, 2008 at 10:01 AM, Douglas Hammond <[hidden email]> wrote:
>> I would think you would do soemthing along this line
>>
>>                // Create a new entry using the calendar service's magic factory method
>>                $event = $service->newEventEntry();
>>
>>                // Populate the event with the desired information
>>                // Note that each attribute is crated as an instance of a matching class
>>                $event->title = $service->newTitle("<a href=\"$url\">$name</a>");
>>                $event->where = array($service->newWhere($location));
>>                $event->content = $service->newContent($description);
>>
>> This is what i am not sure of.
>>
>> $event->transparency = $service->newTransparency('busy');
>>
>> How do i do this correctly?
>>
>



--
Douglas Hammond
VA3DJX
mister t

Re: Set busy or away for google calendar

Reply Threaded More More options
Print post
Permalink
You could try VALUE_OPAQUE or VALUE_TRANSPARENT.  I found this on the google API documentation - http://code.google.com/apis/gdata/jsdoc/1.1/google/gdata/Transparency.html#

-P.


wizhippo wrote:
I would think so but to what value?

I have tried busy/away true false. Event the schema.

Any Ideas would be great