Ryan,
I have a func:
public static function get_gcal_events()
{
$service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; // predefined service name for calendar
$client = Zend_Gdata_ClientLogin::getHttpClient(sfConfig::get('app_gcal_username'),sfConfig::get('app_gcal_password'),$service);
$service = new Zend_Gdata_Calendar($client);
$query = $service->newEventQuery();
$query->setUser('default');
// Set to $query->setVisibility('private-magicCookieValue') if using MagicCookie auth
$query->setVisibility('private');
$query->setProjection('full');
$query->setOrderby('starttime');
$query->setSortOrder('ascending');
$query->setFutureevents('true');
// $query->setStartMin(date("Y-m-d"));
$query->setMaxResults(25);
return $service->getCalendarEventFeed($query);
}
and then in the view I have tried many things, but currently have
<?php if ($eventfeed): ?>
<!-- <dl> -->
<?php foreach ($eventfeed as $event): ?>
<strong>Title: </strong> <?php echo $event->title->text ?> <br />
<strong>content: </strong> <?php echo $event->content ?> <br />
<strong>when: </strong> <?php echo $event->when['startTime'] ?> <br />
<pre><?php print_r($event) ?></pre>
<hr />
<?php endforeach; ?>
<!-- </dl> -->
<?php endif; ?>
Ryan Boyd-3 wrote:
Hi Clark,
Can you please give us a snippet of the relevant code, so we can see what
methods are not working for you, what URLs you're using, what query params,
and what class objects you're using?
Cheers,
-Ryan
On 9/25/07, dmclark <david.clark@umb.edu> wrote:
>
>
> Hi,
>
> I am using the gcal zend library in Symfony using the symfony-zend
> bridge plugin.
>
> I am successfully getting the feed of a calendar and setting the sort
> order, etc.
>
> I am having trouble rendering (or ideally, parsing to import the data
> into local db). $event->title->text works, but none of the other
> documented method seem to work.
>
> I would rather not have to use dom if at all possible
>
> Any pointers?
>
> thanks
>
>
> --
> View this message in context:
>
http://www.nabble.com/Debugging-deciphering-library-methods-tf4515579s16154.html#a12879596> Sent from the Zend gdata mailing list archive at Nabble.com.
>
>