'classname' => 'core_message_external',
'methodname' => 'get_contacts',
'classpath' => 'message/externallib.php',
- 'description' => 'Retrieve the contact list',
+ 'description' => '** DEPRECATED ** Please do not call this function any more.
+ Retrieve the contact list',
'type' => 'read',
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
),
/**
* Get contacts parameters description.
*
+ * @deprecated since 3.6
* @return external_function_parameters
* @since Moodle 2.5
*/
/**
* Get contacts.
*
+ * @deprecated since 3.6
* @return external_description
* @since Moodle 2.5
*/
/**
* Get contacts return description.
*
+ * @deprecated since 3.6
* @return external_description
* @since Moodle 2.5
*/
);
}
+ /**
+ * Marking the method as deprecated.
+ *
+ * @return bool
+ */
+ public static function get_contacts_is_deprecated() {
+ return true;
+ }
+
/**
* Search contacts parameters description.
*
- core_message_external::data_for_messagearea_messages().
- core_message_external::data_for_messagearea_get_most_recent_message().
- core_message_external::data_for_messagearea_get_profile().
+ - core_message_external::get_contacts().
* The following function has been added for getting the privacy messaging preference:
- get_user_privacy_messaging_preference()