zend gdata google base getting link url and parsing xml with object oriented php
- by thrice801
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!