|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | moodlecore |
Functions | |
| user_create_user ($user) | |
| user_update_user ($user) | |
| user_delete_user ($user) | |
| user_get_users_by_id ($userids) | |
| user_get_user_details ($user, $course=null, array $userfields=array()) | |
| user_page_type_list ($pagetype, $parentcontext, $currentcontext) | |
| user_create_user | ( | $ | user | ) |
Creates a user
| object | $user | user to create |
set the timecreate field to the current time
hash the password
insert the user into the database
trigger user_created event on the full database user row
create USER context for this user
Definition at line 33 of file lib.php.


| user_delete_user | ( | $ | user | ) |
Marks user deleted in internal user database and notifies the auth plugin. Also unenrols user from all roles and does other cleanup.
| object | $user | Userobject before delete (without system magic quotes) |
Definition at line 94 of file lib.php.


| user_get_user_details | ( | $ | user, |
| $ | course = null, |
||
| array $ | userfields = array() |
||
| ) |
Give user record from mdl_user, build an array conntains all user details
| stdClass | $user | user record from mdl_user |
| stdClass | $context | context object |
| stdClass | $course | moodle course |
| array | $userfields | required fields |
Definition at line 119 of file lib.php.


| user_get_users_by_id | ( | $ | userids | ) |
| user_page_type_list | ( | $ | pagetype, |
| $ | parentcontext, | ||
| $ | currentcontext | ||
| ) |
| user_update_user | ( | $ | user | ) |
Update a user with a user object (will compare against the ID)
| object | $user | - the user to update |
set the timecreate field to the current time
hash the password
trigger user_updated event on the full database user row
Definition at line 65 of file lib.php.

