MDL-65974 course: move format renderers to outputs

This commit is contained in:
Ferran Recio 2020-10-22 09:22:54 +02:00
parent 1c839f9072
commit 8e7dc42440
49 changed files with 3553 additions and 1958 deletions

View file

@ -989,8 +989,8 @@ function make_editing_buttons() {
* @deprecated since 2.5
*/
function print_section() {
throw new coding_exception('Function print_section() is removed. Please use course renderer function '.
'course_section_cm_list() instead.');
throw new coding_exception('Function print_section() is removed. Please use core_course\output\section_format '.
' to render a course section instead.');
}
/**

View file

@ -2005,11 +2005,11 @@ class global_navigation extends navigation_node {
* Loads all of the courses section into the navigation.
*
* This function calls method from current course format, see
* {@link core_course\course_format::extend_course_navigation()}
* core_course\course_format::extend_course_navigation()
* If course module ($cm) is specified but course format failed to create the node,
* the activity node is created anyway.
*
* By default course formats call the method {@link global_navigation::load_generic_course_sections()}
* By default course formats call the method global_navigation::load_generic_course_sections()
*
* @param stdClass $course Database record for the course
* @param navigation_node $coursenode The course node within the navigation