Commit | Line | Data |
---|---|---|
72b33964 DP |
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 | |
5 | ||
8a641199 FM |
6 | === 2.4 === |
7 | ||
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. | |
10 | ||
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. | |
13 | ||
72b33964 DP |
14 | === 2.3 === |
15 | ||
16 | * instance_config_form() must now be declared static for php5.4 compatibility. | |
17 | ||
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 | |
23 | ||
24 | * It is recomended to define function get_file_source_info() to provide more rich | |
25 | infromation about the source of a file. | |
26 | ||
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. |