-
Sub-task
-
Resolution: Fixed
-
Minor
-
2.2, 2.4.1
-
MOODLE_22_STABLE, MOODLE_24_STABLE
-
MOODLE_25_STABLE
-
MDL-30070-master -
- Run the Unit Tests message/tests/externallib_test.php
Follow http://docs.moodle.org/dev/How_to_contribute_a_web_service_function_to_core
This is how I see those methods implemented (Fred):
create_contacts
|
Add a contact to the 'address book'
|
@param array(int User ID, ...)
|
@return warnings
|
|
delete_contacts
|
Remove a contact to the 'address book'
|
@param array(int User ID, ...)
|
@return void
|
|
block_contacts
|
Block a contact
|
@param array(int User ID, ...)
|
@return warnings
|
|
unblock_contacts
|
Unblock a contact
|
@param array(int User ID, ...)
|
@return void
|
|
get_contacts
|
List the contacts
|
@return array(
|
array(
|
online contacts => array(
|
array(
|
user ID,
|
fullname,
|
picture,
|
picture small,
|
unread messages count
|
)
|
),
|
offline contacts => array(
|
array(
|
user ID,
|
fullname,
|
picture,
|
picture small,
|
unread messages count
|
)
|
),
|
strangers => array(
|
array(
|
user ID,
|
fullname,
|
picture,
|
picture small,
|
unread messages count
|
)
|
)
|
)
|
)
|
|
search_contacts
|
Search for contacts among the users
|
@param string name
|
@param bool only in my courses (default false)
|
@return array(
|
array(
|
user ID,
|
fullname,
|
picture,
|
picture small
|
)
|
)
|