Questions tagged [moodle-api]

Moodle has a number of core APIs that provide tools for Moodle scripts.API's are already having functionality that can be reuse,and allow you to interact with Moodle system. They are essential when writing Moodle plugin, or Moodle customization.

Moodle Questions, those are about programming or development in Moodle should use this tag.

there are many core-apis those provide interaction with Moodle core system.

List of API's is

1 Most-used General APIs
    1.1 Access API (access)
    1.2 Data manipulation API (dml)
    1.3 File API (files)
    1.4 Form API (form)
    1.5 Logging API (log)
    1.6 Navigation API (navigation)
    1.7 Page API (page)
    1.8 Output API (output)
    1.9 String API (string)
    1.10 Upgrade API (upgrade)
    1.11 Moodlelib API (core)
2 Other General APIs
    2.1 Admin settings (admin)
    2.2 Availability (availability)
    2.3 Backup API (backup)
    2.4 Cache API (cache)
    2.5 Calendar API (calendar)
    2.6 Comment API (comment)
    2.7 Data definition API (ddl)
    2.8 Enrolment API (enrol)
    2.9 Events API (event)
    2.10 External functions API (external)
    2.11 Lock API (lock)
    2.12 Message API (message)
    2.13 Media API (media)
    2.14 My profile API
    2.15 Preference API (preference)
    2.16 Portfolio API (portfolio)
    2.17 Rating API (rating)
    2.18 RSS API (rss)
    2.19 Tag API (tag)
    2.20 Task API (task)
    2.21 Time API (time)
    2.22 Testing API (test)
    2.23 User-related APIs (user)
    2.24 Web services API (webservice)
3 Activity module APIs
    3.1 Activity completion API (completion)
    3.2 Advanced grading API (grading)
    3.3 Conditional activities API (condition) - deprecated in 2.7
    3.4 Groups API (group)
    3.5 Gradebook API (grade)
    3.6 Plagiarism API (plagiarism)
    3.7 Question API (question)

more about Moodle Api's https://docs.moodle.org/dev/Core_APIs

Most generally used api's are

Form API, File API, Events Api, Logging API, Data manipulation API, Navigation API (navigation) etc.

328 questions
0
votes
1 answer

Table "tablename" does not exist in moodle

I am new in php cms(moodle). I create a plugin and it's name is area. i have installed it and database table created successfully, table name is mdl_area_state, but giving me an error Table mdl_area_state does not exists.
0
votes
0 answers

Moodle - Teacher should see list of Classwise Students

We are creating an LMS (for multiple Schools) where when teacher of a particular School logs in, he/she should see Students that belongs to the Teacher School only. Also, Teacher would be assign to Classes, hence only those Classes should be visible…
andujd
  • 3
  • 3
0
votes
1 answer

moodle - Customize the list of courses in the dashboard page

I'd like to modify the list of courses ( course overview ), to modify the display of the courses. I'd like something like that: Is there a way to save a thumbnail for each course in the database, and display it in the dashboard of the course list,…
Anthony
  • 31
  • 1
  • 9
0
votes
1 answer

How to get userid of logged in user in moodle using angularjs

I want to get userid of logged in user in moodle using angularjs code (by calling web-service).
Prasad
  • 1
  • 5
0
votes
1 answer

Email using cron and including attachment to email from moodle

I would like to send emails only to users that have completed a specific course and add a pdf file (a certificate for completing the course) as attachment to the email, and do so at a specific time using moodle cron. I have looked at some plugins to…
hwkd
  • 2,411
  • 3
  • 18
  • 27
0
votes
1 answer

MOODLE Data Manipulation : function get_records_sql doesn't work. my plugin form not shown when add get_records_sql at the code?

I try to make an plugin on moodle. i work on moodle 3.0, i already create a moodle form for my plugin, i want to show list of quiz on the form use moodle select element, the form shown when i only show it without a select option. when i try to add…
0
votes
1 answer

Display Moodle lesson activities/resources in other places

Keeping it short, I would like to display the resources/activities somewhere else on the page. I am looking for the code where I can use in a different div that will show the resources of the current week selected. Using the weekly format of 1 week…
Alex Stacey
  • 21
  • 1
  • 3
0
votes
1 answer

Moodle password check on external script

I have Moodle 2.7. Users logins and passwords hashes is stored in mdl_user table. I want to create external script that can check - if login and password are correct. As i see - this moodle version use some function php like password_hash() to…
moonvader
  • 19,761
  • 18
  • 67
  • 116
0
votes
2 answers

"Enrolled users" tab in Course administration is not displaying

Hi i am newbie to moodle. Please can anyone help me, how to display the "enrolled users" tab in course administration. By default the enrolled users tab is not displaying in course administration.I am using moodle 2.8 version. I need to get the…
0
votes
1 answer

Moodle - Custom Email Notifications ?

I'm trying to modify the email that a student receives when he finish a quiz. I want to add some information to the mail (like the feedbacks of each answer, the score ecc.) but, on moodle documentation, i read that there are only few information…
Removed
  • 109
  • 3
  • 19
0
votes
0 answers

Scorm weekly interactions report in Moodle

I am entirely new to Moodle and have been asked to export the interactions of around 50 quizzes weekly. For the first week I did it manually but it's a real pain... I am looking for a way to trigger something to produce and send or save every…
Bity
  • 43
  • 1
  • 6
0
votes
2 answers

how to create a form elements with value in moodle

I am trying to create a form element text with value in moodle. I trying the below : $mform->addElement('text','test', get_string('test')); This is used to create a text box . i want to add value also like
Nisanth
  • 323
  • 8
  • 24
0
votes
1 answer

SSO for Wirecloud/IdM and Moodle?

Looking for best practice instructions on how to integrate a Fiware/Wirecloud with Moodle. It would seem that Fiware/IdM should be providing the user data and Moodle connects via one of its plugins. Moodle offers a number of different authentication…
philippos
  • 41
  • 5
0
votes
1 answer

Correct sequence and arguments of filemanager saving in moodle

I'm using moodle's filemanager elememnt to upload one file Unfortunately Moodle's documentation is very badly organized and and incomplete I can't understand how should I work with the damn filemanager! Currently I'm doing it like this: //…
Ariyan
  • 14,760
  • 31
  • 112
  • 175
0
votes
1 answer

display user profile as part of my plugin page in moodle

I'm creating a moodle local plugin and I need to display the current user's profile page as part of my page and add my data after that. is there any API that give me the profile page (with all additional fields) so I will be able to show it in my…
Ariyan
  • 14,760
  • 31
  • 112
  • 175
1 2 3
21
22