2012-05-03 19:00:40 +08:00
|
|
|
This files describes API changes for course formats
|
|
|
|
|
|
|
|
Overview of this plugin type at http://docs.moodle.org/dev/Course_formats
|
|
|
|
|
2014-02-10 15:17:46 +08:00
|
|
|
=== 2.7 ===
|
|
|
|
* The ->testedbrowsers array no longer needs to be defined in supports_ajax().
|
|
|
|
|
2013-07-08 16:00:50 +12:00
|
|
|
=== 2.6 ===
|
|
|
|
|
|
|
|
* core_course_renderer::course_section_cm_edit_actions has two new optional arguments and now uses and action_menu component.
|
|
|
|
* core_course_renderer::course_section_cm has been altered to call core_course_renderer::course_section_cm_edit_actions with the two new arguments
|
2013-07-31 00:50:48 +01:00
|
|
|
* An additional course renderer function has been created which allows you to
|
|
|
|
specify the wrapper for a course module within a section (e.g. the <li>). This can be
|
|
|
|
found in core_course_renderer::course_section_cm_list_item().
|
2013-07-08 16:00:50 +12:00
|
|
|
|
2013-04-15 16:46:42 +10:00
|
|
|
=== 2.5 ===
|
|
|
|
|
|
|
|
* Functions responsible for output in course/lib.php are deprecated, the code is moved to
|
|
|
|
appropriate renderers: print_section(), print_section_add_menus(), get_print_section_cm_text(),
|
|
|
|
make_editing_buttons()
|
|
|
|
See functions' phpdocs in lib/deprecatedlib.php
|
|
|
|
* Function get_print_section_cm_text() is deprecated, replaced with methods in cm_info
|
|
|
|
|
2012-09-25 14:42:25 +08:00
|
|
|
=== 2.4 ===
|
|
|
|
|
2012-09-18 09:57:37 +08:00
|
|
|
Course format API has been changed significantly. Instead of implementing callbacks course formats
|
|
|
|
may overwrite the class format_base. See format_legacy class for a template for upgrading course
|
|
|
|
format.
|
|
|
|
|
2012-09-25 14:42:25 +08:00
|
|
|
* Function settings_navigation::add_course_editing_links() is completely removed, course format
|
|
|
|
functions callback_XXXX_request_key() are no longer used (where XXXX is the course format name)
|
2012-09-26 14:11:41 +08:00
|
|
|
* functions get_generic_section_name(), get_all_sections(), add_mod_to_section(), get_all_mods()
|
|
|
|
are deprecated. See their phpdocs in lib/deprecatedlib.php on how to replace them
|
2012-10-18 16:03:11 +08:00
|
|
|
* Course formats may now have their settings.php file as the most of other plugin types
|
2012-11-14 15:54:13 +08:00
|
|
|
* Function format_section_renderer_base::is_section_current() is deprecated, overwrite/use
|
|
|
|
function is_section_current in format class
|
2012-09-25 14:42:25 +08:00
|
|
|
|
2012-05-03 19:00:40 +08:00
|
|
|
=== 2.3 ===
|
|
|
|
|
|
|
|
* The new $course->coursedisplay option was introduced, users can now choose to display
|
|
|
|
a section at a time if the course formats support it:
|
|
|
|
- COURSE_DISPLAY_SINGLEPAGE indicates the teacher has chosen to display all sections on one page
|
|
|
|
- COURSE_DISPLAY_MULTIPAGE indicates the teacher has chose to have seperate pages with each section.
|
|
|
|
|
|
|
|
* The parameter for 'currently active section' was standardised in core:
|
|
|
|
- The course format is passed the currently live section through the $displaysection varaible to format.php
|
|
|
|
- A 'section' paramter is the standardised way to pass around the current section in a course
|
|
|
|
- Navigation no longer looks for custom parameters defined in callback_format_request_key
|