MDL-59624 mod_data: Return maxcount in WS mod_data_search_entries

This commit is contained in:
Juan Leyva
2017-07-25 15:55:22 +02:00
parent 16a68a2f76
commit be4bdab78a
3 changed files with 16 additions and 1 deletions
+3 -1
View File
@@ -807,7 +807,9 @@ class mod_data_external extends external_api {
'entries' => new external_multiple_structure(
record_exporter::get_read_structure()
),
'totalcount' => new external_value(PARAM_INT, 'Total count of records.'),
'totalcount' => new external_value(PARAM_INT, 'Total count of records returned by the search.'),
'maxcount' => new external_value(PARAM_INT, 'Total count of records that the user could see in the database
(if all the search criterias were removed).', VALUE_OPTIONAL),
'listviewcontents' => new external_value(PARAM_RAW, 'The list view contents as is rendered in the site.',
VALUE_OPTIONAL),
'warnings' => new external_warnings()