Merge branch 'wip-MDL-36859-m24' of git://github.com/samhemelryk/moodle
[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
4=== 2.3 ===
5
6required changes:
7* The following methods must now be declared static for php5 compatibility:
8 - admin_config_form
9 - admin_config_validation
37743241
MN
10
11=== 2.4 ===
12
13The set_callback_options function's third parameter has been changed from a file path
14to the component name - see MDL-33791. However, if any existing code passes a file path
15Moodle will attempt to obtain the component name from the file path provided. Also, the
16callback class should be located in the module's locallib.php file.
17
18Example of change:
19
20This:
21
22$button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'fileid' => $file->get_id()), '/mod/assignment/locallib.php');
23
24Now becomes:
25
26$button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'fileid' => $file->get_id()), 'mod_assignment');