i want to update the settings like end time, start time, safe browsing etc of quiz in a section. But moodle is not providing the api / web service function for updating the settings. Is there any way except creating a whole new local plugin to accomplice this task (eg. any admin apis which we can access by some authentication and update the settings of quiz or there is some another web service function which does this task.)
accessing apis/ web service function which are not core web services functions
由Ujwal Gupta發表於
Number of replies: 4
In reply to Ujwal Gupta
accessing apis/ web service function which are not core web services functions
由Howard Miller發表於
In reply to Howard Miller
accessing apis/ web service function which are not core web services functions
由Ujwal Gupta發表於
after creating a new local plugin do i have to expose the plugin to the open source community of moodle and only after doing so i can use it? or i can directly use that plugin for my website? also where should i place that plugin such that my moodle website can locate the function in it
In reply to Ujwal Gupta
accessing apis/ web service function which are not core web services functions
由Mark Sharp發表於
Hi,
You don't have to share your code with the community, especially if it's bespoke to your system. But the license still needs to be GPL.
About local plugins, they live in the `local` directory in Moodle. There's a readme.txt in that directory with some useful information, plus some documentation here: Local plugins | Moodle Developer Resources and some information on requirements for all Moodle plugins: Common files | Moodle Developer Resources
Defining external (web service) functions: Function Definitions | Moodle Developer Resources
If you're creating external functions, it's well worth understanding Capabilities and making sure only those with permissions can make changes. Access API | Moodle Developer Resources
In reply to Mark Sharp
accessing apis/ web service function which are not core web services functions
由Ujwal Gupta發表於