Merge branch 'MDL-36934-master' of git://git.luns.net.uk/moodle
[moodle.git] / repository / upgrade.txt
blob7cd84ac9d0bb29f79b4d7edf4017c7925744df14
1 This files describes API changes in /repository/ repository system,
2 information provided here is intended especially for developers. Full
3 details of the repository API are available on Moodle docs:
4 http://docs.moodle.org/dev/Repository_API
6 === 2.4 ===
8 * copy_to_area() can receive a new parameter called $areamaxbytes which controls the maximum
9   size of the area the files will be stored in.
11 * the repositories using the upload() method should implement a check for $areamaxbytes,
12   see repository/upload/lib.php upload() and process_upload() for an example on how handling it.
14 === 2.3 ===
16 * instance_config_form() must now be declared static for php5.4 compatibility.
18 * get_listing() and search() file metadata details are now now more prominently
19   displayed in the interface. Dates and timestamos are now able to be sorted on in
20   the filepicker interface so plugin authors are asked to ensure:
21     - Dates are defined as UNIX timestamps
22     - Filesize is an integer in bytes
24 * It is recomended to define function get_file_source_info() to provide more rich
25   infromation about the source of a file.
27 * The API was extended to allow repositories can now support external references, please
28   see http://docs.moodle.org/dev/Repository_API for further details.