Moodle API - Add / Remove Classes

Moodle API - Add / Remove Classes

by Cory B -
Number of replies: 3
Hello,

I've looked through the Moodle API (http://moodle.org/mod/resource/view.php?id=1267), but haven't seen any way to script the creation or removal of courses. Is there any way to do this? If not, is there any reason to not add something like this to the Moodle API?

Thanks.
Average of ratings: -
In reply to Cory B

Re: Moodle API - Add / Remove Classes

by Shane Elliott -
Picture of Core developers Picture of Plugin developers
Course creation and deletion are currently handled by:
course/edit.php
course/delete.php
In reply to Cory B

Re: Moodle API - Add / Remove Classes

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
A web service will come eventually, but for now people just knock up little custom scripts (it's easy, because each course is just one record in the courses table)
In reply to Martin Dougiamas

Re: Moodle API - Add / Remove Classes

by Cory B -
Yeah, it looks pretty easy to script. Is there any reason to not add something like this to the Moodle API?