Calendar - retrieving just some properties

5 messages Options
Embed this post
Permalink
emdeex

Calendar - retrieving just some properties

Reply Threaded More More options
Print post
Permalink
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
Hector Virgen

Re: Calendar - retrieving just some properties

Reply Threaded More More options
Print post
Permalink
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 <[hidden email]> 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


Kyle Spraggs

Re: Calendar - retrieving just some properties

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
On 10/8/2009 10:27 AM, Hector Virgen wrote:
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 <[hidden email]> 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


GET is pretty common and the method I prefer to use.

-- 
Kyle Spraggs (SpiffyJr)
http://www.spiffyjr.me
Ryan Boyd-3

Re: Calendar - retrieving just some properties

Reply Threaded More More options
Print post
Permalink
var_dump is also useful if you don't have all ZF classes available:


On Thu, Oct 8, 2009 at 1:31 PM, Kyle Spraggs <[hidden email]> wrote:
On 10/8/2009 10:27 AM, Hector Virgen wrote:
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 <[hidden email]> 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


GET is pretty common and the method I prefer to use.

-- 
Kyle Spraggs (SpiffyJr)
http://www.spiffyjr.me

Kyle Spraggs

Re: Calendar - retrieving just some properties

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
On 10/8/2009 3:34 PM, Ryan Boyd wrote:
var_dump is also useful if you don't have all ZF classes available:


On Thu, Oct 8, 2009 at 1:31 PM, Kyle Spraggs [hidden email] wrote:
On 10/8/2009 10:27 AM, Hector Virgen wrote:
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 <[hidden email]> 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


GET is pretty common and the method I prefer to use.

-- 
Kyle Spraggs (SpiffyJr)
http://www.spiffyjr.me

I accidentally replied to the wrong mail. var_dump and print_r are both useful for what you're trying to do.

-- 
Kyle Spraggs (SpiffyJr)
http://www.spiffyjr.me