1 |
efrain |
1 |
This files describes API changes in /portfolio/ portfolio system,
|
|
|
2 |
information provided here is intended especially for developers.
|
|
|
3 |
|
|
|
4 |
=== 4.0 ===
|
|
|
5 |
|
|
|
6 |
* The portfolio_boxnet has been completely removed.
|
|
|
7 |
* The portfolio_picasa has been completely removed (Picasa is discontinued since 2016).
|
|
|
8 |
|
|
|
9 |
=== 3.7 ===
|
|
|
10 |
|
|
|
11 |
* The portfolio_cron() function has been removed. Please use portfolio_cron_task scheduled task instead.
|
|
|
12 |
|
|
|
13 |
=== 3.1 ===
|
|
|
14 |
|
|
|
15 |
* The following functions, previously used (exclusively) by upgrade steps are not available
|
|
|
16 |
anymore because of the upgrade cleanup performed for this version. See MDL-51580 for more info:
|
|
|
17 |
- portfolio_picasa_admin_upgrade_notification()
|
|
|
18 |
- portfolio_googledocs_admin_upgrade_notification()
|
|
|
19 |
- portfolio_boxnet_admin_upgrade_notification()
|
|
|
20 |
|
|
|
21 |
=== 2.4 ===
|
|
|
22 |
|
|
|
23 |
The set_callback_options function's third parameter has been changed from a file path
|
|
|
24 |
to the component name - see MDL-33791. However, if any existing code passes a file path
|
|
|
25 |
Moodle will attempt to obtain the component name from the file path provided. Also, the
|
|
|
26 |
callback class should be located in the module's locallib.php file.
|
|
|
27 |
|
|
|
28 |
Example of change:
|
|
|
29 |
|
|
|
30 |
This:
|
|
|
31 |
|
|
|
32 |
$button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'fileid' => $file->get_id()), '/mod/assignment/locallib.php');
|
|
|
33 |
|
|
|
34 |
Now becomes:
|
|
|
35 |
|
|
|
36 |
$button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'fileid' => $file->get_id()), 'mod_assignment');
|
|
|
37 |
|
|
|
38 |
=== 2.3 ===
|
|
|
39 |
|
|
|
40 |
required changes:
|
|
|
41 |
* The following methods must now be declared static for php5 compatibility:
|
|
|
42 |
- admin_config_form
|
|
|
43 |
- admin_config_validation
|