moodle

Getting information from the Moodle API as a student

醉酒当歌 提交于 2019-12-20 03:38:09
问题 I'm currently a student at a University and I'm using Moodle everyday. I would like to access some information that is available to me (For example, information of the classes I'm taking, Which assignments are due and when , etc) I did some research regarding Moodle's API but it all seemed geared toward the power user who actually runs Moodle (My University). Is there an easy way for me as a student to get the information? My application uses Node.js 回答1: If your university has enabled Web

Cannot retrieve previously saved data from LMS - SCORM 2004

梦想与她 提交于 2019-12-18 09:36:41
问题 I'm trying to retrieve previously saved data from Moodle LMS but seems like something is not working. This is what I'm doing: I load the SCORM (v2004) package into Moodle and perform some actions (like save navigation data or set completion status): // Completion status always "unknown" at first time so I try to change it to incomplete: API_1484_11.SetValue('cmi.completion_status', 'incomplete'); // "true" ... API_1484_11.SetValue('cmi.location', '{"page":2}'); // "true" Then later on commit

Create Moodle activities programmatically

家住魔仙堡 提交于 2019-12-18 06:48:42
问题 Does anyone know if it’s possible to add an activity programmatically to a course in Moodle? I was thinking to maybe use the class module_add_instance() from the lib.php of my custom plugin... e.g. function feedback_add_instance(stdClass $mod) { global $DB; $newmodule->timecreated = time(); // You may have to add extra stuff in here. $newmodule->id = $DB->insert_record('exams', $newmodule); unicexams_grade_item_update($newmodule); return $newmodule->id; } But then again: What is the $mod

Mysql trigger to update the inserted row

孤街醉人 提交于 2019-12-13 19:03:17
问题 I'm facing a problem: I want to update a record that being inserted to a table with trigger: DELIMITER $$ CREATE TRIGGER moodle.update_lang AFTER INSERT ON moodle.mdl_user FOR EACH ROW BEGIN update moodle.mdl_user SET lang='hu' WHERE lang='en'; END$$ DELIMITER ; So when I want to insert a row now, it gives me an error that the row can't be inserted because a procedure is already using it. Can you give any solutions how to make this work? Is this method usable or should I aproach the problem

Moodle - API for user registration

你。 提交于 2019-12-13 18:21:03
问题 I am integrating Magento and Moodle. Does moodle provides APIs to register users, assign user groups, create/edit/delete courses etc? 回答1: There is a web services api - http://docs.moodle.org/20/en/How_to_create_and_enable_a_web_service In summary: Enable the protocol - go to site admin -> plugins -> web services -> manage protocols and select the protocol required, eg REST. On the same page check Web services documentation and save changes. Read through the API documentation at site admin ->

How to get the name of a course's teacher

ε祈祈猫儿з 提交于 2019-12-13 08:25:51
问题 Could you help me create a query that shows the teacher(s) of a course Example: Title of course: Course 1 Teacher: James Anderson I have this query: SELECT DISTINCT ldm_user.id, ldm_user.firstname, ldm_user.lastname, ldm_course.shortname, ldm_course.fullname, ldm_role.id as role_id, ldm_role_assignments.id FROM ldm_course,ldm_user,ldm_role,ldm_context,ldm_role_assignments WHERE ldm_course.fullname = "i-ONS001 Taller de Lectura y Redacción IV" and ldm_role_assignments.id = 4 But this is not

Get the authentication from the moodle for a android application

走远了吗. 提交于 2019-12-13 05:22:33
问题 I want to get the authentication from moodle (say the moodle site from our university) in my android application. And I do not have the access to the database. I tried to make a http post request from my application with username and password. But when I execute the post request, I get an exception. This is what I have tried private URI url = new URI("https://online.mrt.ac.lk/login/index.php"); HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(url); List

Is it possible to have my app communicate with moodle?

为君一笑 提交于 2019-12-12 19:50:16
问题 I am thinking about building a student app, that would use Moodle data, and notify the user when a new file has been uploaded, and perhaps do something like checking your grades etc. I'm quite new to android programming and can get easily confused with the technical terms. I've looked around the web and found that there is an API, but I dont really 100% know what that means. Which is weird since I've communicated with API's like the OpenWeatherMap one and uTorrent. Would Moodle's api do the

Add a custom field to course Moodle

末鹿安然 提交于 2019-12-12 11:03:51
问题 I'm new to moodle. I need your suggestions to create plugin which will add a custom field on Add/edit courses page and will also store the input value in mdl_course table. 回答1: As of now Moodle does not allow you to add custom fields to a course from the web interface. However there is a patch available for v1.9 in the Moodle Tracker(MDL-18319). Please be aware that the patch is for Moodle-1.9 and applying it directly may corrupt your source code if you are using Moodle version > 1.9 回答2: You

AAPT: error: resource android:attr/fontVariationSettings not found

一世执手 提交于 2019-12-12 10:46:35
问题 D:\wamp\www\moodle35>cordova build android cordova-android-support-gradle-release: Android platform: V7.1.2+ cordova-android-support-gradle-release: Wrote custom version '27.1.0' to D:\wamp\www\moodle35\platforms\android\app\build.gradle cordova-android-support-gradle-release: Wrote custom version '27.1.0' to D:\wamp\www\moodle35\platforms\android\app\src\main\cordova-android-su port-gradle-release\properties.gradle Android Studio project detected cordova-android-support-gradle-release: