[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 This files describes API changes in /portfolio/ portfolio system, 2 information provided here is intended especially for developers. 3 4 === 2.4 === 5 6 The set_callback_options function's third parameter has been changed from a file path 7 to the component name - see MDL-33791. However, if any existing code passes a file path 8 Moodle will attempt to obtain the component name from the file path provided. Also, the 9 callback class should be located in the module's locallib.php file. 10 11 Example of change: 12 13 This: 14 15 $button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'fileid' => $file->get_id()), '/mod/assignment/locallib.php'); 16 17 Now becomes: 18 19 $button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'fileid' => $file->get_id()), 'mod_assignment'); 20 21 === 2.3 === 22 23 required changes: 24 * The following methods must now be declared static for php5 compatibility: 25 - admin_config_form 26 - admin_config_validation
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |