如何从下面访问“atom”:
Zend_Gdata_Calendar_EventEntry Object
(
[_entryClassName:protected] => Zend_Gdata_Calendar_EventEntry
[_sendEventNotifications:protected] =>
[_timezone:protected] =>
[_quickadd:protected] =>
[_who:protected] => Array
(
[0] => Zend_Gdata_Extension_Who Object
(
[_rootElement:protected] => who
[_email:protected] => vrock123456@gmail.com
[_rel:protected] => http://schemas.google.com/g/2005#event.organizer
[_valueString:protected] => vrock123456@gmail.com
[_attendeeStatus:protected] =>
[_attendeeType:protected] =>
[_entryLink:protected] =>
[_rootNamespace:protected] => gd
[_rootNamespaceURI:protected] =>
[_extensionElements:protected] => Array
(
)
[_extensionAttributes:protected] => Array
(
)
[_text:protected] =>
[_namespaces:protected] => Array
(
[atom] => Array
(
[1] => Array
(
[0] => http://www.w3.org/2005/Atom
)
)
)
)
)
答案 0 :(得分:0)
1)显示Zend_Gdata_Calendar_EventEntry类
2)可能在foreach循环中或类可能有一些像as_array()这样的方法将对象转换为数组。
答案 1 :(得分:0)
Zend_Gdata_Calendar_EventEntry
有方法getWho()
,它返回“whos”数组。但在Zend_Gdata_Extension_Who
中,我没有看到返回已定义命名空间的方法
但您可以使用Reflection访问该属性 - 示例#2。