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