zend gdata google base getting link url and parsing xml with object oriented php

Posted by thrice801 on Stack Overflow See other posts from Stack Overflow or by thrice801
Published on 2010-06-17T00:01:58Z Indexed on 2010/06/17 0:12 UTC
Read the original article Hit count: 621

Filed under:
|
|
|

Hi,

So I am using Zend frameworks Gdata extension to parse xml data from google base.

http://framework.zend.com/manual/en/zend.gdata.gbase.html

Working fine minus one damn important thing I cant seem to parse, the link to the actual page, because there are two elements and its returned as an array.

Anyways Ive tried vardumping the array but what comes out didnt help me figure out what was going on any better. So heres the specifics of the issue.

   echo $entry->title->text."<br />".$entry->id->text."<br />".$entry->content->text."<br />".$entry->author[0]->name."<br />";

(the above code works fine).

Now according to the documentation I thought I could get the link href by going $entry->link->text or $entry->link->url (tried both, neither worked).

Anyways, Im not sure whether this is zend specific or just a gap in my OOP understanding, but any help would be much appreciated!

© Stack Overflow or respective owner

Related posts about php

Related posts about oop