Exporting Moodle Functions

Exporting Moodle Functions

Bởi Gregory JB -
Số lượng các câu trả lời: 0

Good moring. Recently, I built a Facebook application that allows users to use Moodle's forums from Facebook. I wrote php scripts by hand that pull and push data for discussions and posts. It was not until recently that I realized that Moodle could do all of this for me. 

I would like to know if I can use exported Moodle functions to pull information about posts / discussions / forums, send new posts / discussions and check user cababilites.

For example, say a user wants to check student grades on Facebook. He or she would click a button to display the grades. I want to check if this user has the ability to do that. Assume that I have the users Moodle id. How can I do this?

Right now, the Facebook application is running on Javascript. When access to the database is required, php scripts are called using ajax. The scripts return data to the client. If possible, I would like to call Moodle functions from these scripts.

Trung bình điểm đánh giá: -