From dbc404de71f8c339dda623580171ef460bcee146 Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Wed, 5 Apr 2017 09:41:15 +0200 Subject: [PATCH] MDL-58399 webservice: Add missing upgrade.txt information We should indicate the API changes for developers. --- course/upgrade.txt | 5 +++++ mod/upgrade.txt | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/course/upgrade.txt b/course/upgrade.txt index b38361f136d..1c53aa75916 100644 --- a/course/upgrade.txt +++ b/course/upgrade.txt @@ -4,6 +4,11 @@ information provided here is intended especially for developers. === 3.3 === * External function core_course_external::get_courses_by_field now returns the course filters list and status. + * External function core_course_external::get_course_contents now return the following additional file fields: + - mimetype (the file mime type) + - isexternalfile (if is a file reference to a external repository) + - repositorytype (the repository name in case is a external file) + Those fields are VALUE_OPTIONAL for backwards compatibility. === 3.2 === diff --git a/mod/upgrade.txt b/mod/upgrade.txt index 24549c5e133..3581efc95cc 100644 --- a/mod/upgrade.txt +++ b/mod/upgrade.txt @@ -1,6 +1,14 @@ This files describes API changes in /mod/* - activity modules, information provided here is intended especially for developers. +=== 3.3 === + + * External functions that were returning file information now return the following additional file fields: + - mimetype (the file mime type) + - isexternalfile (if is a file reference to a external repository) + - repositorytype (the repository name in case is a external file) + Those fields are VALUE_OPTIONAL for backwards compatibility. + === 3.2 === * Callback delete_course is deprecated and should be replaced with observer for event \core\event\course_content_deleted