mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-54941-master' of git://github.com/jleyva/moodle
This commit is contained in:
commit
8c7840df32
11 changed files with 46 additions and 160 deletions
|
@ -2267,7 +2267,10 @@ class core_course_external extends external_api {
|
|||
$files[] = array(
|
||||
'filename' => $file->get_filename(),
|
||||
'fileurl' => $fileurl,
|
||||
'filesize' => $file->get_filesize()
|
||||
'filesize' => $file->get_filesize(),
|
||||
'filepath' => $file->get_filepath(),
|
||||
'mimetype' => $file->get_mimetype(),
|
||||
'timemodified' => $file->get_timemodified(),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -2337,16 +2340,7 @@ class core_course_external extends external_api {
|
|||
'categoryname' => new external_value(PARAM_TEXT, 'category name'),
|
||||
'summary' => new external_value(PARAM_RAW, 'summary'),
|
||||
'summaryformat' => new external_format_value('summary'),
|
||||
'overviewfiles' => new external_multiple_structure(
|
||||
new external_single_structure(
|
||||
array(
|
||||
'filename' => new external_value(PARAM_FILE, 'overview file name'),
|
||||
'fileurl' => new external_value(PARAM_URL, 'overview file url'),
|
||||
'filesize' => new external_value(PARAM_INT, 'overview file size'),
|
||||
)
|
||||
),
|
||||
'additional overview files attached to this course'
|
||||
),
|
||||
'overviewfiles' => new external_files('additional overview files attached to this course'),
|
||||
'contacts' => new external_multiple_structure(
|
||||
new external_single_structure(
|
||||
array(
|
||||
|
|
|
@ -4,4 +4,7 @@ information provided here is intended especially for developers.
|
|||
=== 3.2 ===
|
||||
|
||||
* External function core_course_external::get_course_contents now returns the section's number in the course (new section field).
|
||||
* External functions that were returning file information now return the following file fields:
|
||||
filename, filepath, mimetype, filesize, timemodified and fileurl.
|
||||
Those fields are now marked as VALUE_OPTIONAL for backwards compatibility.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue