weekly release 4.5dev
[moodle.git] / dataformat / upgrade.txt
blob088dd1e9711e7eaf1144eb811da27671d9851896
1 === 4.5 Onwards ===
3 This file has been replaced by UPGRADING.md. See MDL-81125 for further information.
5 ===
6 This files describes API changes in /dataformat/ download system,
7 information provided here is intended especially for developers.
9 === 3.11.1 ===
10 * Optional $callback for the following \core\dataformat methods now receive a second argument to define
11   whether the current format writer supports HTML:
12   - download_data()
13   - write_data()
14   - write_data_to_filearea()
16 === 3.9 ===
17 * The following methods have been added to the base dataformat class to allow instances to export to a local
18   file. They can be overridden in extending classes to define how files should be created:
19   - start_output_to_file()
20   - close_output_to_file()
21 * Calls to the following dataformat plugin methods have been removed:
22   - write_header()
23   - write_footer()
24 * The following methods have been added to the base class to allow instances to define support for exporting
25   HTML content, with additional support for defining how images should be embedded:
26   - supports_html()
27   - export_html_image_source()
28 * Dataformat writers should also call the following method to ensure data is properly formatted before being
29   written, which takes into account prior methods defining support for HTML:
30   - format_record()
32 === 3.4 ===
33 * In order to allow multiple sheets in an exported file the functions write_header() and write_footer() have
34   been removed from core dataformat plugins and have been replaced.
35   - write_header() has been replaced with the two functions start_output() and start_sheet().
36   - write_footer() has been replaced with the two functions close_output() and close_sheet().
37   For backwards compatibility write_header() and write_footer() will continue to work but if used will
38   trigger the function error_log().
40 === 3.1 ===
41 * Added new plugin system with low memory support for csv, ods, xls and json