Merge branch 'MDL-68912' of https://github.com/rlorenzo/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
d8e72a6a
SL
4=== 3.7 ===
5
6* The portfolio_cron() function has been removed. Please use portfolio_cron_task scheduled task instead.
7
1405f010
EL
8=== 3.1 ===
9
10* The following functions, previously used (exclusively) by upgrade steps are not available
11 anymore because of the upgrade cleanup performed for this version. See MDL-51580 for more info:
12 - portfolio_picasa_admin_upgrade_notification()
13 - portfolio_googledocs_admin_upgrade_notification()
14 - portfolio_boxnet_admin_upgrade_notification()
15
37743241
MN
16=== 2.4 ===
17
18The set_callback_options function's third parameter has been changed from a file path
19to the component name - see MDL-33791. However, if any existing code passes a file path
20Moodle will attempt to obtain the component name from the file path provided. Also, the
21callback class should be located in the module's locallib.php file.
22
23Example of change:
24
25This:
26
27$button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'fileid' => $file->get_id()), '/mod/assignment/locallib.php');
28
29Now becomes:
30
8dd6b5f4
DP
31$button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'fileid' => $file->get_id()), 'mod_assignment');
32
33=== 2.3 ===
34
35required changes:
36* The following methods must now be declared static for php5 compatibility:
37 - admin_config_form
38 - admin_config_validation