I was reading the documentation on the API, and looks like it's supposed to be implemented for Moodle 2.0. I need to write some custom code and was wondering which functions are available for me to use now?
I found the following:
create_user_record() in moodle/lib/moodlelib.php - This will create a new user, but only adds the username and password. I can't find another function that updates the other fields (firstname, lastname, country, etc). Any suggestions on where to look?
enrol_into_course() in moodle/lib/accesslib.php - This looks like it will enrol a student in a course. I'm assuming that $course->id is the course id number of the course (as opposed to the shortname).
Is there any problem with using these functions?
Also, are there any functions that will: (1) check to see if a username or email are already in use (2) update a user record (city, country, phone, etc) (3) check to see if a course exists
Thanks