douweidao3882
2014-07-05 08:12
浏览 94
已采纳

drupal数据库结构..无法得到它

I am a PHP developer and I don't know much about Drupal. Now I have the task to fetch all restaurants names from a Drupal database. I have not been able to find out, which table Drupal is using to store the names of the restaurants. I am sure it's an easy task for anyone who knows Drupal.

enter image description here

enter image description here

enter image description here

enter image description here

图片转代码服务由CSDN问答提供 功能建议

我是一名PHP开发人员,我对Drupal了解不多。 现在我的任务是从Drupal数据库中获取所有餐馆名称。 我无法找到Drupal用来存储餐馆名称的表格。 我相信对于知道Drupal的人来说这是一件容易的事。

“在此处输入图像说明”

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • douyu2817 2014-07-05 15:59
    已采纳

    I assume that you've lost site files or just don't want to mess with Drupal, because it is fairly easy to get data from working copy of site.

    This could work to retrieve names, if your restaurant implemented using node:

    • Look for type column in node_type table of a record which most likely is a Restaurant.

    • Than go to node table and filter by type column, which you got on step before this one.

    It is more complex if Restaurant is a custom entity provided by other module or a taxonomy term.

    点赞 评论

相关推荐 更多相似问题