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