Bill Karwin of Zend had a great response for dafritz's question over on
the zend fw-gdata mailing list.

It is possible like this:
$cal = new Zend_Gdata_Calender();
$cal->sortorder = 'ascending';

See Bill's post for more info:
http://www.nabble.com/Sort-order-with-Zend-Framework-and-google-calendar-tf2887801s16154.html

-Ryan

On Dec 27, 12:08 pm, "Ryan Boyd (Google)" <[EMAIL PROTECTED]> wrote:
Hello dafritz,

If you didn't find an answer yet for this question, you may wish to try
posting it on the Zend Framework GData mailing list.

More information on this list is available 
at:http://framework.zend.com/wiki/display/ZFDEV/Contributing+to+Zend+Fra...

I can't actually find a way to do this if you are using the
Zend_Gdata_Calendar::getCalendarFeed method as this method builds the
URL for the feed from only known values stored in the _params array.
If you wish to use the generic Zend_Gdata::getFeed method, you can pass
any arbitrary URL to that method.

For instance,
             $eventFeed =
$gdata->getFeed('http://www.google.com/calendar/feeds/default/private/full'
.

'?orderby=starttime&sortorder=ascending&futureevents=true' .
                 '&max-results=10&singleevents=true');

Cheers,

-Ryan

On Dec 21, 11:49 am, "dafritz" <[EMAIL PROTECTED]> wrote:

> I am using the PHP Zend Framework to access google calendar. I have set
> the order by starttime, but am unable to change the sort oder to
> ascending. I have been reading that there is a query property called
> "sortorder" that you can set, but I am unable to figure out how in the
> PHP client library. I have looked through the code of both Calendar.php
> and Zend_Gdata.php of which neither allow for this propery to be set.
> The default switch in Calendar says "other properties can be set by the
> parent" and the default switch in Gdata says "other properties can be
> set in sub classes", none of which are "sortorder." If anyone can
> clarify how to set this property it will be greatly appreciated.


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