'classname' => 'core_message_external',
'methodname' => 'mark_all_messages_as_read',
'classpath' => 'message/externallib.php',
- 'description' => 'Mark all messages as read for a given user',
+ 'description' => '** DEPRECATED ** Please do not call this function any more.
+ Mark all messages as read for a given user',
'type' => 'write',
'ajax' => true,
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
/**
* Mark all messages as read parameters description.
*
+ * @deprecated since 3.6
* @return external_function_parameters
* @since 3.2
*/
}
/**
- * Mark all notifications as read function.
+ * Mark all messages as read function.
*
- * @since 3.2
+ * @deprecated since 3.6
* @throws invalid_parameter_exception
* @throws moodle_exception
* @param int $useridto the user id who received the message
* @param int $useridfrom the user id who send the message. -10 or -20 for no-reply or support user
* @return external_description
+ * @since 3.2
*/
public static function mark_all_messages_as_read($useridto, $useridfrom) {
global $USER, $CFG;
}
/**
- * Mark all notifications as read return description.
+ * Mark all messages as read return description.
*
+ * @deprecated since 3.6
* @return external_single_structure
* @since 3.2
*/
return new external_value(PARAM_BOOL, 'True if the messages were marked read, false otherwise');
}
+ /**
+ * Marking the method as deprecated.
+ *
+ * @return bool
+ */
+ public static function mark_all_messages_as_read_is_deprecated() {
+ return true;
+ }
+
/**
* Returns description of method parameters.
*
- core_message_external::unblock_contacts(), please use core_message_external::unblock_user() instead.
- core_message_external::create_contacts(), please use core_message_external::create_contact_request() instead.
- core_message_external::delete_conversation(), please use core_message_external::delete_conversations_by_id() instead.
+ - core_message_external::core_message_mark_all_messages_as_read(), please use
+ core_message_external::core_message_mark_all_conversation_messages_as_read() instead.
* The following function has been added for getting the privacy messaging preference:
- get_user_privacy_messaging_preference()