Moodle:是否可以通过数组等形式的 teacher/admin 获取所有博客条目?
Moodle: Is it possible to get all blog entries by a teacher/admin in the form of an array etc.?
就像我们有 get_courses
函数来获取所有课程的数组一样,有没有办法检索用户发布的所有博客文章的列表(数组、对象、任何东西),或者可能是网站上的所有博客文章?
通过某种功能?还是通过数据库调用?
博文在此table
SELECT *
FROM {post}
WHERE module = 'blog'
其中有几个字段用于用户、课程等。
就像我们有 get_courses
函数来获取所有课程的数组一样,有没有办法检索用户发布的所有博客文章的列表(数组、对象、任何东西),或者可能是网站上的所有博客文章?
通过某种功能?还是通过数据库调用?
博文在此table
SELECT *
FROM {post}
WHERE module = 'blog'
其中有几个字段用于用户、课程等。