Merge branch 'MDL-36683' of git://github.com/timhunt/moodle
[moodle.git] / portfolio / upgrade.txt
blob460df3dbe6ff4f9c554dc7fe8917a6bd281825a9
1 This files describes API changes in /portfolio/ portfolio system,
2 information provided here is intended especially for developers.
4 === 2.3 ===
6 required changes:
7 * The following methods must now be declared static for php5 compatibility:
8     - admin_config_form
9     - admin_config_validation
11 === 2.4 ===
13 The set_callback_options function's third parameter has been changed from a file path
14 to the component name - see MDL-33791. However, if any existing code passes a file path
15 Moodle will attempt to obtain the component name from the file path provided. Also, the
16 callback class should be located in the module's locallib.php file.
18 Example of change:
20 This:
22 $button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'fileid' => $file->get_id()), '/mod/assignment/locallib.php');
24 Now becomes:
26 $button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'fileid' => $file->get_id()), 'mod_assignment');