HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/iestorre/moodleAW/moodle07/portfolio/upgrade.txt
This files describes API changes in /portfolio/ portfolio system,
information provided here is intended especially for developers.

=== 2.4 ===

The set_callback_options function's third parameter has been changed from a file path
to the component name - see MDL-33791. However, if any existing code passes a file path
Moodle will attempt to obtain the component name from the file path provided. Also, the
callback class should be located in the module's locallib.php file.

Example of change:

This:

$button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'fileid' => $file->get_id()), '/mod/assignment/locallib.php');

Now becomes:

$button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'fileid' => $file->get_id()), 'mod_assignment');

=== 2.3 ===

required changes:
* The following methods must now be declared static for php5 compatibility:
    - admin_config_form
    - admin_config_validation