| 1441 | ariadna | 1 | === 4.5 Onwards ===
 | 
        
           |  |  | 2 |   | 
        
           |  |  | 3 | This file has been replaced by UPGRADING.md. See MDL-81125 for further information.
 | 
        
           |  |  | 4 |   | 
        
           |  |  | 5 | ===
 | 
        
           | 1 | efrain | 6 | This files describes API changes in the lesson code.
 | 
        
           |  |  | 7 |   | 
        
           |  |  | 8 | === 4.4 ===
 | 
        
           |  |  | 9 |   | 
        
           |  |  | 10 | * The deprecated `lesson_add_header_buttons` method has been removed
 | 
        
           |  |  | 11 |   | 
        
           |  |  | 12 | === 4.0 ===
 | 
        
           |  |  | 13 | * Deprecated the function lesson_add_header_buttons in favour of tertiary navigation.
 | 
        
           |  |  | 14 |   | 
        
           |  |  | 15 | === 3.6.1 ===
 | 
        
           |  |  | 16 |   | 
        
           |  |  | 17 | * A new function update_form_data() has been added to lesson_page class. This can be overridden by the individual page types
 | 
        
           |  |  | 18 |   to alter the form data before being sent to the mform.
 | 
        
           |  |  | 19 |   | 
        
           |  |  | 20 | === 3.4 ===
 | 
        
           |  |  | 21 |   | 
        
           |  |  | 22 | * External function mod_lesson_external::get_user_attempt() now returns the full page object inside each answerpages.
 | 
        
           |  |  | 23 |   | 
        
           |  |  | 24 | === 3.3.2 ===
 | 
        
           |  |  | 25 |   | 
        
           |  |  | 26 | * lesson_refresh_events() Now takes two additional parameters to refine the update to a specific instance. This function
 | 
        
           |  |  | 27 |   now optionally takes the module instance object or ID, and the course module object or ID. Please try to send the full
 | 
        
           |  |  | 28 |   objects instead of the ids to save DB calls.
 | 
        
           |  |  | 29 |   | 
        
           |  |  | 30 | === 3.3 ===
 | 
        
           |  |  | 31 |   | 
        
           |  |  | 32 | * lesson::callback_on_view() has an additional optional parameter $redirect default to true.
 | 
        
           |  |  | 33 |   It can be set to false to avoid redirection and return the page to redirect.
 | 
        
           |  |  | 34 | === 3.1 ===
 | 
        
           |  |  | 35 | * Removed the unused file reformat.php
 | 
        
           |  |  | 36 | * removedoublecr() and importmodifiedaikenstyle() have now been removed.
 | 
        
           |  |  | 37 |   | 
        
           |  |  | 38 | === 3.0 ===
 | 
        
           |  |  | 39 | * Removed broken high score code.  Use the activity results block instead.
 | 
        
           |  |  | 40 |   | 
        
           |  |  | 41 | === 2.9 ===
 | 
        
           |  |  | 42 | * The  grade_item_delete function in mod/lesson/lib.php was removed because it was not doing anything and was never called.
 | 
        
           |  |  | 43 | * A third optional boolean parameter $endreached was added to lesson::update_timer to indicate that end of lesson was reached. This is used by 'completionendreached' custom completion rule.
 | 
        
           |  |  | 44 | * lesson_page_type_endofbranch::update in mod/lesson/pagetypes/endofbranch.php
 | 
        
           |  |  | 45 |   and lesson_page_type_endofcluster::update in mod/lesson/pagetypes/endofcluster.php
 | 
        
           |  |  | 46 |   have been removed, this is now handled by the base class: lesson_page::update in
 | 
        
           |  |  | 47 |   locallib.php and the exact same code is executed (it is also executed by the
 | 
        
           |  |  | 48 |   lesson_page_type_cluster class that previously had no update function).
 | 
        
           |  |  | 49 | * A fourth parameter (format) has been added to the add_answer() function
 | 
        
           |  |  | 50 |   located as part of the lesson_add_page_form_base class. If specified with a value of 'LESSON_ANSWER_HTML'
 | 
        
           |  |  | 51 |   then a rich html editor is generated. Otherwise an editor is created with Moodle Auto Format
 | 
        
           |  |  | 52 | * removedoublecr() and importmodifiedaikenstyle() are now deprecated.
 | 
        
           |  |  | 53 | * Added support for groups and groupings. If enabled, this allows the Report and
 | 
        
           |  |  | 54 |   Grade Essay view to be filtered by a group
 | 
        
           |  |  | 55 |   | 
        
           |  |  | 56 | === Earlier changes ===
 | 
        
           |  |  | 57 |   | 
        
           |  |  | 58 | * Were not documented in this way. Sorry.
 |