Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Namespaces | |
namespace | core_user\external |
| |
Classes | |
class | core_user\external\search_identity |
Provides the core_user_search_identity external function. More... | |
class | core_user_external |
User external functions. More... | |
Functions | |
static | add_user_device ($appid, $name, $model, $platform, $version, $pushid, $uuid, $publickey=null) |
Add a user device in Moodle database (for PUSH notifications usually). | |
static | add_user_device_parameters () |
Returns description of method parameters. | |
static | add_user_device_returns () |
Returns description of method result value. | |
static | add_user_private_files ($draftid) |
Copy files from a draft area to users private files area. | |
static | add_user_private_files_parameters () |
Returns description of method parameters. | |
static | add_user_private_files_returns () |
Returns description of method result value. | |
static | agree_site_policy () |
Agree the site policy for the current user. | |
static | agree_site_policy_parameters () |
Returns description of method parameters. | |
static | agree_site_policy_returns () |
Returns description of method result value. | |
static | get_course_user_profiles ($userlist) |
Get course participant's details. | |
static | get_course_user_profiles_parameters () |
Returns description of method parameters. | |
static | get_course_user_profiles_returns () |
Returns description of method result value. | |
static | get_private_files_info ($userid=0) |
Returns general information about files in the user private files area. | |
static | get_private_files_info_parameters () |
Returns description of method parameters. | |
static | get_private_files_info_returns () |
Returns description of method result value. | |
static | get_user_preferences ($name='', $userid=0) |
Return user preferences. | |
static | get_user_preferences_parameters () |
Returns description of method parameters. | |
static | get_user_preferences_returns () |
Returns description of method result value. | |
static | get_users ($criteria=array()) |
Retrieve matching user. | |
static | get_users_by_field_returns () |
Returns description of method result value. | |
static | get_users_parameters () |
Returns description of get_users() parameters. | |
static | get_users_returns () |
Returns description of get_users result value. | |
static | remove_user_device ($uuid, $appid="") |
Remove a user device from the Moodle database (for PUSH notifications usually). | |
static | remove_user_device_parameters () |
Returns description of method parameters. | |
static | remove_user_device_returns () |
Returns description of method result value. | |
static | set_user_preferences ($preferences) |
Set user preferences. | |
static | set_user_preferences_parameters () |
Returns description of method parameters. | |
static | set_user_preferences_returns () |
Returns description of method result value. | |
static | update_picture ($draftitemid, $delete=false, $userid=0) |
Update or delete the user picture in the site. | |
static | update_picture_parameters () |
Returns description of method parameters. | |
static | update_picture_returns () |
Returns description of method result value. | |
static | user_description ($additionalfields=array()) |
Create user return value description. | |
static | view_user_list ($courseid) |
Trigger the user_list_viewed event. | |
static | view_user_list_parameters () |
Returns description of method parameters. | |
static | view_user_list_returns () |
Returns description of method result value. | |
static | view_user_profile ($userid, $courseid=0) |
Trigger the user profile viewed event. | |
static | view_user_profile_parameters () |
Returns description of method parameters. | |
static | view_user_profile_returns () |
Returns description of method result value. | |
|
static |
Add a user device in Moodle database (for PUSH notifications usually).
moodle_exception |
string | $appid | The app id, usually something like com.moodle.moodlemobile. |
string | $name | The device name, occam or iPhone etc. |
string | $model | The device model Nexus4 or iPad1.1 etc. |
string | $platform | The device platform iOs or Android etc. |
string | $version | The device version 6.1.2 or 4.2.2 etc. |
string | $pushid | The device PUSH token/key/identifier/registration id. |
string | $uuid | The device UUID. |
string | $publickey | The app generated public key |
array | List of possible warnings. |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
external_multiple_structure |
|
static |
Copy files from a draft area to users private files area.
invalid_parameter_exception | |
moodle_exception |
int | $draftid | Id of a draft area containing files. |
array | An array of warnings |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
external_description |
|
static |
Agree the site policy for the current user.
array | of warnings and status result |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
external_description |
|
static |
Get course participant's details.
array | $userlist | array of user ids and according course ids |
array | An array of arrays describing course participants |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
external_description |
|
static |
Returns general information about files in the user private files area.
int | $userid | Id of the user, default to current user. |
array | of warnings and file area information |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
external_description |
|
static |
Return user preferences.
string | $name | preference name, empty for all |
int | $userid | id of the user, 0 for current user |
array | of warnings and preferences |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
external_description |
|
static |
Retrieve matching user.
moodle_exception |
array | $criteria | the allowed array keys are id/lastname/firstname/idnumber/username/email/auth. |
array | An array of arrays containing user profiles. |
|
static |
Returns description of method result value.
external_multiple_structure |
|
static |
Returns description of get_users() parameters.
external_function_parameters |
|
static |
Returns description of get_users result value.
external_description |
|
static |
Remove a user device from the Moodle database (for PUSH notifications usually).
string | $uuid | The device UUID. |
string | $appid | The app id, opitonal parameter. If empty all the devices fmatching the UUID or the user will be removed. |
array | List of possible warnings and removal status. |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
external_multiple_structure |
|
static |
Set user preferences.
array | $preferences | list of preferences including name, value and userid |
array | of warnings and preferences saved |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
external_description |
|
static |
Update or delete the user picture in the site.
int | $draftitemid | id of the user draft file to use as image |
bool | $delete | if we should delete the user picture |
int | $userid | id of the user, 0 for current user |
array | warnings and success status |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
external_description |
|
static |
Create user return value description.
array | $additionalfields | some additional field |
external_description |
|
static |
Trigger the user_list_viewed event.
int | $courseid | id of course |
array | of warnings and status result |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
external_description |
|
static |
Trigger the user profile viewed event.
int | $userid | id of user |
int | $courseid | id of course |
array | of warnings and status result |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
external_description |