【问题标题】:Zend GData, Google Calendar API QuestionZend GData,谷歌日历 API 问题
【发布时间】:2011-03-31 01:45:59
【问题描述】:

我阅读了 IBM 开发网站上的教程。 http://www.ibm.com/developerworks/xml/library/x-googleclndr/#resources

我测试成功了。现在我不知道如何在我的事件视图页面插入事件描述。基于下面的代码。仅显示事件 ID、事件标题。是否有类似 event->description 的参数?谢谢。

下面的代码来自示例代码文件view.php

foreach ($feed as $event) {
  echo "<li>\n";
  echo "<h2>" . stripslashes($event->title) . "</h2>\n";
  echo stripslashes($event->summary) . " <br/>\n";
  $id = substr($event->id, strrpos($event->id, '/')+1);
  echo "<a href=\"edit.php?id=$id\">edit</a> | ";
  echo "<a href=\"delete.php?id=$id\">delete</a> <br/>\n";
  echo "</li>\n";
}

【问题讨论】:

    标签: php zend-gdata


    【解决方案1】:

    我认为您正在寻找的是$event-&gt;content。看看Manual for Zend_GData catelendar API

    【讨论】: