List Info

Thread: get gd namespace elements php




get gd namespace elements php
user name
2006-12-28 17:01:10
I have been searching for a way to access the gd namespace
elements for a
feed for the google calendar api and other google libraries.
It seems like
it would be fairly simple, but im trying to keep everything
as abstracted as
possible using the Zend framework. A basic example I have
been trying is to
simply get the gd:when tag from a google calendar feed. I
have tried
loadeding the namespace into the Zend_Feed and calling
something like echo
$entry->{'gd:when'};. However this does not work. I know
the php client
library is still very young, but are there any abstracted
methods that allow
to get elements from another namespace? Sorry to post more
silly questions
to the group, but the php library isnt very well documented
right now, and I
really hope to understand it better and perhaps provide more
public
documentation for it. Thank You.
-- 
View this message in context: http://www.nabble.com/get-gd-na
mespace-elements-php-tf2891135s16154.html#a8077035
Sent from the Zend gdata mailing list archive at Nabble.com.

get gd namespace elements php
user name
2006-12-28 17:45:54
dafritz wrote:
> I have been searching for a way to access the gd
namespace elements for a
> feed for the google calendar api and other google
libraries. 
Set a variable to the name of the tag, and then fetch the
element by 
symbolic reference.  That way you can use special characters
in the name 
of the member.

  $tagname = 'gd:when';
  $when = $feedItem->$tagname;

This is the technique I used, for example, in  
tests/Zend/Gdata/CalendarTest.php.

Regards,
Bill Karwin
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )