2009年10月8日星期四

Re: [fw-gdata] Calendar - retrieving just some properties

You can use Zend_Debug::dump() to dump the contents of any variable to the screen.

Zend_Debug::dump($event->when);

--
Hector


On Wed, Oct 7, 2009 at 10:08 PM, emdeex <emdeex@gmail.com> wrote:
Hi, I've got my gdata-php app retrieving my calendar,

And I'm looking at http://framework.zend.com/manual/en/zend.gdata.calendar.html

I see from the example that I can echo properties like:

 foreach ($eventFeed as $event) {
   echo "<li>" . $event->title . " (Event ID: " . $event->id . ")</li>";
}

And the document says I can use "Additional properties such as ID,
author, when, event status, visibility, web content, and content,
among others ..."

I don't want title, or summary, or id, I just want the event date, or
better yet, the date and busy/free.

But $event->when returns "array" and I don't know what its
sub-properties are or how to access them.

Thanks for any help


没有评论: